-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add typing-extensions
to the list of dependencies?
#5495
Comments
Great spot! We should definitely add that. I wonder how CI passes, then? |
Looks like there isn't an action that only installs |
Yes, good point. Would you be up for another PR @malmans2 ? |
Can we consider making typing-extensions a fully optional dependency instead? In particular, typing-extensions 3.10 is a very new version, only from May 2021. This seems overly restrictive, particularly for a dependency that isn't really needed at all at runtime and that we only use for a few type annotations. |
Fixes pydataGH-5495 Type checking may be a little worse if typing-extensions are not installed, but I don't think it's worth the trouble of adding another hard dependency just for one use for TypeGuard.
@shoyer I added |
I made an attempt at making the use of TypeGuard optional, but it doesn't pass mypy yet: #5624 |
Using |
As soon as libraries like Beam allow installing later versions, I would vote to add this back. |
typing_extensions
is imported inxarray/core/npcompat.py
andxarray/core/utils.py
.However,
typing-extensions
is not a dependency insetup.cfg
, and I get the following error when I install withpip install git+https://github.com/pydata/xarray
using python 3.9:ModuleNotFoundError: No module named 'typing_extensions'
The text was updated successfully, but these errors were encountered: