Skip to content

Commit af58a0d

Browse files
author
Robbie Muir
committed
fix typing
1 parent 3a10b12 commit af58a0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

linopy/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def try_to_convert_to_pd_datetime_index(
134134
try:
135135
if isinstance(coord, xr.DataArray):
136136
return coord.to_index()
137-
return pd.DatetimeIndex(coord) # type: ignore
137+
return pd.DatetimeIndex(coord)
138138
except Exception:
139139
return coord
140140

test/test_variables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,6 @@ def test_timezone_alignment_with_multiplication() -> None:
145145
warnings.simplefilter("error")
146146
expr = var1 * series1
147147

148-
index: pd.DatetimeIndex = expr.coords["time"].to_index() # type: ignore
148+
index: pd.DatetimeIndex = expr.coords["time"].to_index()
149149
assert index.equals(utc_index)
150150
assert index.tzinfo is UTC

0 commit comments

Comments
 (0)