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
Good catch. I think the most expedient correct fix is to just add str to the union for datatype and rely on the runtime (_def_enum() ) to ensure that it's an integer type. So the signature is just
It seems that
createEnumType
is wrongly typed as:But e.g.
datatype="u1"
is also supported.downstream issue:
Mypy 1.12 issues pydata/xarray#9624
problematic lines (roughly):
The text was updated successfully, but these errors were encountered: