Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Jing Wang committed Sep 15, 2024
1 parent c8b5db8 commit 1218e1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyhdfs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def open(self, path: str, **kwargs: _PossibleArgumentTypes) -> IO[bytes]:
metadata_response.headers["location"], stream=True, **self._requests_kwargs
)
_check_response(data_response)
return data_response.raw # type: ignore[no-any-return]
return data_response.raw # type: ignore[return-value]

def mkdirs(self, path: str, **kwargs: _PossibleArgumentTypes) -> bool:
"""Create a directory with the provided permission.
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ max-line-length = 100
extend-ignore = E203

[mypy]
exclude = ^env/$

ignore_missing_imports = true

disallow_any_unimported = true
Expand Down

0 comments on commit 1218e1b

Please sign in to comment.