Skip to content

Commit

Permalink
return pd.Timestamp("NaT") instead pd.NaT (fixes typing)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuehlbauer committed Dec 29, 2024
1 parent fb5a4fb commit 70f96d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/coding/times.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def _check_date_for_units_since_refdate(
else:
# if date is exactly NaT (np.iinfo("int64").min) return refdate
# to make follow-up checks work
return pd.NaT
return pd.Timestamp("NaT")


def _decode_datetime_with_pandas(
Expand Down

0 comments on commit 70f96d0

Please sign in to comment.