mirror of
https://github.com/cockpit-project/cockpit.git
synced 2026-11-03 21:49:50 -09:00
test: Add misc.print to mypy parsing
Adds `print.py` to mypy config and fixes an unused ignore. Signed-off-by: Freya Gustavsson <freya@venefilyn.se>
This commit is contained in:
parent
27397bae8d
commit
b37097f941
2 changed files with 2 additions and 1 deletions
|
|
@ -69,6 +69,7 @@ module = [
|
|||
'cockpit.channels.pcp',
|
||||
'cockpit.channels.stream',
|
||||
'cockpit.channels.trivial',
|
||||
'cockpit.misc.print',
|
||||
'cockpit.jsonutil',
|
||||
'cockpit.packages',
|
||||
'cockpit.peer',
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ class Printer:
|
|||
if headers is not None:
|
||||
our_headers.update(headers)
|
||||
# mypy is right: kwargs could include `done` or `method`, but codifying that is really awkward
|
||||
self.http(path, internal='packages', channel=channel, headers=our_headers, **kwargs) # type: ignore[arg-type]
|
||||
self.http(path, internal='packages', channel=channel, headers=our_headers, **kwargs)
|
||||
|
||||
def spawn(self, *args: str, channel: Optional[str] = None, **kwargs: object) -> None:
|
||||
"""Open a stream channel with a spawned command"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue