Skip to content

Commit

Permalink
Get rid of some redundant type-ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
erlendvollset committed Apr 13, 2023
1 parent 5e8b860 commit 1fd76e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cognite/client/_api/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ def _download_file_to_path(self, download_link: str, path: Path, chunk_size: int
) as r:
r = cast("Response", r)
with path.open("wb") as f:
for chunk in r.iter_content(chunk_size=chunk_size): # type: ignore
for chunk in r.iter_content(chunk_size=chunk_size):
if chunk: # filter out keep-alive new chunks
f.write(chunk)

Expand Down
2 changes: 1 addition & 1 deletion cognite/client/utils/_concurrency.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def result(self) -> T_Result:
...


class SyncFuture(TaskFuture):
class SyncFuture(TaskFuture[T_Result]):
def __init__(self, fn: Callable[..., T_Result], *args: Any, **kwargs: Any):
self._task = functools.partial(fn, *args, **kwargs)
self._result: Optional[T_Result] = None
Expand Down

0 comments on commit 1fd76e0

Please sign in to comment.