Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
penguinolog committed Mar 5, 2024
1 parent a9604ad commit 0256e55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exec_helpers/_ssh_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def interface(self) -> paramiko.Channel:
return super().interface # type: ignore[no-any-return]

@property
def stdin(self) -> paramiko.ChannelFile: # type: ignore[name-defined] # paramiko bug: not in __all__
def stdin(self) -> paramiko.ChannelFile:
"""Override original NamedTuple with proper typing.
:return: STDIN interface
Expand All @@ -114,10 +114,10 @@ def stdin(self) -> paramiko.ChannelFile: # type: ignore[name-defined] # parami
DeprecationWarning,
stacklevel=2,
)
return super().stdin
return super().stdin # type: ignore[return-value]

@property
def stderr(self) -> paramiko.ChannelFile | None: # type: ignore[name-defined]
def stderr(self) -> paramiko.ChannelFile | None:
"""Override original NamedTuple with proper typing.
:return: STDERR interface
Expand All @@ -126,7 +126,7 @@ def stderr(self) -> paramiko.ChannelFile | None: # type: ignore[name-defined]
return super().stderr

@property
def stdout(self) -> paramiko.ChannelFile | None: # type: ignore[name-defined]
def stdout(self) -> paramiko.ChannelFile | None:
"""Override original NamedTuple with proper typing.
:return: STDOUT interface
Expand Down

0 comments on commit 0256e55

Please sign in to comment.