Skip to content

Commit 9103f70

Browse files
committed
remove ignore[assignment] from pandas/tseries/frequencies.py III
1 parent c3d5b77 commit 9103f70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tseries/frequencies.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ def infer_freq(
173173
if not hasattr(index, "dtype"):
174174
pass
175175
elif isinstance(index.dtype, object):
176-
if is_numeric_dtype(index.dtype):
176+
if is_numeric_dtype(index.dtype):
177177
raise TypeError(
178178
f"cannot infer freq from a non-convertible index of dtype {index.dtype}"
179179
)
180-
index: TimedeltaArray = index
180+
index: TimedeltaArray = index
181181

182182
if not isinstance(index, DatetimeIndex):
183183
index = DatetimeIndex(index)

0 commit comments

Comments
 (0)