Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 21, 2024
1 parent f7e870c commit 7d9918c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xarray/namedarray/_array_api/_utility_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def all(
Examples
--------
>>> import numpy as np
>>> x = NamedArray(("x", "y"), np.array([[True, False],[True, True]]))
>>> x = NamedArray(("x", "y"), np.array([[True, False], [True, True]]))
>>> all(x)
<xarray.NamedArray ()> Size: 1B
np.False_
Expand Down Expand Up @@ -71,12 +71,12 @@ def any(
Examples
--------
>>> import numpy as np
>>> x = NamedArray(("x", "y"), np.array([[True, False],[True, True]]))
>>> x = NamedArray(("x", "y"), np.array([[True, False], [True, True]]))
>>> any(x)
<xarray.NamedArray ()> Size: 1B
np.True_
>>> x = NamedArray(("x", "y"), np.array([[True, False],[False, False]]))
>>> x = NamedArray(("x", "y"), np.array([[True, False], [False, False]]))
>>> any(x, axis=0)
<xarray.NamedArray (y: 2)> Size: 2B
array([ True, False])
Expand Down

0 comments on commit 7d9918c

Please sign in to comment.