Skip to content

Commit

Permalink
Revert "Update _typing.py"
Browse files Browse the repository at this point in the history
This reverts commit 42fd510.
  • Loading branch information
Illviljan committed Jul 11, 2024
1 parent 42fd510 commit 78c8d46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xarray/namedarray/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ def __array_namespace__(self) -> ModuleType: ...
# NamedArray can most likely use both __array_function__ and __array_namespace__:
_arrayfunction_or_api = (_arrayfunction, _arrayapi)

duckarray = Union[_arrayfunction[_ShapeType, _DType], _arrayapi[_ShapeType, _DType]]
duckarray = Union[
_arrayfunction[_ShapeType_co, _DType_co], _arrayapi[_ShapeType_co, _DType_co]
]

# Corresponds to np.typing.NDArray:
DuckArray = _arrayfunction[Any, np.dtype[_ScalarType_co]]
Expand Down

0 comments on commit 78c8d46

Please sign in to comment.