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
with python 3.10 and typing_extensions 4.6 I get this error
.tox/py310-linux/lib/python3.10/site-packages/xarray_dataclasses/typing.py:74: in <module>
class DataClass(Protocol[PInit]):
/opt/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/typing.py:312: in inner
return func(*args, **kwds)
.tox/py310-linux/lib/python3.10/site-packages/typing_extensions.py:672: in __class_getitem__
raise TypeError(
E TypeError: Parameters to Protocol[...] must all be type variables. Parameter 1 is ~PInit
Dear @giovp , thank you for reporting this issue. It seems that it is a bug related to typing_extension v4.6.0 (python/typing_extensions#181), not to our side. Now they released the bug-fixed version (v4.6.1) and I confirmed that it works without the error (at least in my environment). So could you try to update typing_extension?
with python 3.10 and typing_extensions 4.6 I get this error
referred to this line
xarray-dataclasses/xarray_dataclasses/typing.py
Line 74 in d57fa41
The text was updated successfully, but these errors were encountered: