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 Apr 12, 2024
1 parent 7bbb55d commit 2860594
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion xarray/core/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ def first_n_items(array: T_Variable, n_desired: int) -> np.ndarray:
# might not be a numpy.ndarray. Moreover, access to elements of the array
# could be very expensive (e.g. if it's only available over DAP), so go out
# of our way to get them in a single call to __getitem__ using only slices.
from xarray.core.variable import Variable

if n_desired < 1:
raise ValueError("must request at least one item")
Expand Down

0 comments on commit 2860594

Please sign in to comment.