Skip to content

Commit

Permalink
Update _typing.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Aug 19, 2024
1 parent 7d32bdc commit c1163ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xarray/namedarray/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ class Default(Enum):
_ScalarType = TypeVar("_ScalarType", bound=np.generic)
_ScalarType_co = TypeVar("_ScalarType_co", bound=np.generic, covariant=True)

_ArrayLike = np.typing.ArrayLike


# A protocol for anything with the dtype attribute
@runtime_checkable
Expand Down Expand Up @@ -100,6 +98,10 @@ def dtype(self) -> _DType_co: ...

_AttrsLike = Union[Mapping[Any, Any], None]

_ArrayLike = np.typing.ArrayLike

_Device = Any


class _SupportsReal(Protocol[_T_co]):
@property
Expand Down

0 comments on commit c1163ad

Please sign in to comment.