Skip to content

Commit

Permalink
[dagster-ssh]: Removes unnecessary type ignores (#25549)
Browse files Browse the repository at this point in the history
## Summary & Motivation

Running pyright locally was giving the warning that some `# type:
ignore` comments were unnecessary. This removes them.

## How I Tested These Changes

```
make pyright
```
  • Loading branch information
marijncv authored Oct 25, 2024
1 parent 4c6e9e5 commit e46cc0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python_modules/libraries/dagster-ssh/dagster_ssh/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def get_connection(self) -> SSHClient:
timeout=self.timeout,
compress=self.compress,
port=self.remote_port, # type: ignore
sock=self._host_proxy, # type: ignore
sock=self._host_proxy,
look_for_keys=False,
)
else:
Expand All @@ -156,7 +156,7 @@ def get_connection(self) -> SSHClient:
timeout=self.timeout,
compress=self.compress,
port=self.remote_port, # type: ignore
sock=self._host_proxy, # type: ignore
sock=self._host_proxy,
)

if self.keepalive_interval:
Expand Down

0 comments on commit e46cc0d

Please sign in to comment.