Skip to content

Commit 452968c

Browse files
committed
Fix mypy
1 parent 5108b02 commit 452968c

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
@@ -1444,7 +1444,7 @@ def decode(self, variable: Variable, name: T_Name = None) -> Variable:
14441444
f"'us', or 'ns'. Encoded values have a resolution of "
14451445
f"{resolution!r}."
14461446
)
1447-
time_unit = resolution
1447+
time_unit = cast(PDDatetimeUnitOptions, resolution)
14481448
else:
14491449
if self._emit_decode_timedelta_future_warning:
14501450
emit_user_level_warning(

0 commit comments

Comments
 (0)