We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a10b12 commit af58a0dCopy full SHA for af58a0d
linopy/common.py
@@ -134,7 +134,7 @@ def try_to_convert_to_pd_datetime_index(
134
try:
135
if isinstance(coord, xr.DataArray):
136
return coord.to_index()
137
- return pd.DatetimeIndex(coord) # type: ignore
+ return pd.DatetimeIndex(coord)
138
except Exception:
139
return coord
140
test/test_variables.py
@@ -145,6 +145,6 @@ def test_timezone_alignment_with_multiplication() -> None:
145
warnings.simplefilter("error")
146
expr = var1 * series1
147
148
- index: pd.DatetimeIndex = expr.coords["time"].to_index() # type: ignore
+ index: pd.DatetimeIndex = expr.coords["time"].to_index()
149
assert index.equals(utc_index)
150
assert index.tzinfo is UTC
0 commit comments