Skip to content

Commit ec80cb5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 46806b2 commit ec80cb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/coding/times.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ def infer_calendar_name(dates) -> CFCalendar:
733733
"""Given an array of datetimes, infer the CF calendar name"""
734734
if is_np_datetime_like(dates.dtype):
735735
return "proleptic_gregorian"
736-
elif dates.dtype == np.dtype("O") and dates.size > 0: # noqa: SIM102
736+
elif dates.dtype == np.dtype("O") and dates.size > 0:
737737
# Logic copied from core.common.contains_cftime_datetimes.
738738
if cftime is not None:
739739
sample = np.asarray(dates).flat[0]

0 commit comments

Comments
 (0)