You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ mypy --warn-return-any test.py
test.py:8: note: Revealed type is "Any"
test.py:9: error: Returning Any from functiondeclared to return"UPath" [no-any-return]
Found 1 error in 1 file (checked 1 source file)
❯ python -m pip show universal_pathlib
Name: universal_pathlib
Version: 0.2.2
Summary: pathlib api extended to use fsspec backends
Home-page: https://github.com/fsspec/universal_pathlib
Author:
Author-email:
License: MIT
Location: /Users/rahuliyer/workspace/.venv/lib/python3.10/site-packages
Requires: fsspec
Required-by:
I believe this is because __truediv__ is defined in upath/_compat.py in v0.2.2 which got fixed with #212.
I was wondering if we can have a patch release which can fix the type checks? If not, I am okay waiting for v0.3.0 (#223)
The text was updated successfully, but these errors were encountered:
I am trying
v0.2.2
and mypy is complaining about the type when/
(__truediv__
) is used to create a path with--warn-return-any
flag withmypy
. e.g.:test.py
I believe this is because
__truediv__
is defined inupath/_compat.py
inv0.2.2
which got fixed with #212.I was wondering if we can have a patch release which can fix the type checks? If not, I am okay waiting for
v0.3.0
(#223)The text was updated successfully, but these errors were encountered: