Skip to content

Commit

Permalink
fix the signature of __array__
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis committed Apr 14, 2024
1 parent 4ad4000 commit d830cef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xarray/namedarray/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ def __getitem__(

@overload
def __array__(
self, dtype: None = ..., copy: None | bool = ..., /
self, dtype: None = ..., /, *, copy: None | bool = ...
) -> np.ndarray[Any, _DType_co]: ...

@overload
def __array__(
self, dtype: _DType, copy: None | bool = ..., /
self, dtype: _DType, /, *, copy: None | bool = ...
) -> np.ndarray[Any, _DType]: ...

def __array__(
Expand Down

0 comments on commit d830cef

Please sign in to comment.