Skip to content

Commit ef933f4

Browse files
committed
mypy ignores
1 parent 425646d commit ef933f4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pandas/tests/extension/test_masked.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def check_accumulate(self, ser: pd.Series, op_name: str, skipna: bool):
382382
if op_name == "cumsum":
383383
pass
384384
elif op_name in ["cummax", "cummin"]:
385-
expected_dtype = ser.dtype
385+
expected_dtype = ser.dtype # type: ignore[assignment]
386386
elif op_name == "cumprod":
387387
ser = ser[:12]
388388
else:

pandas/tests/frame/methods/test_diff.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def test_diff_sparse(self):
251251
{
252252
"a": [pd.NA, 0, 1, 0, pd.NA, pd.NA, pd.NA, 0],
253253
"b": [pd.NA, 1, pd.NA, pd.NA, -2, 1, pd.NA, pd.NA],
254-
"c": np.repeat(pd.NA, 8),
254+
"c": np.repeat(pd.NA, 8), # type: ignore[call-overload]
255255
"d": [pd.NA, 3, 5, 7, 9, 11, 13, 15],
256256
},
257257
dtype="Int64",
@@ -261,10 +261,10 @@ def test_diff_sparse(self):
261261
1,
262262
DataFrame(
263263
{
264-
"a": np.repeat(pd.NA, 8),
264+
"a": np.repeat(pd.NA, 8), # type: ignore[call-overload]
265265
"b": [0, 1, pd.NA, 1, pd.NA, pd.NA, pd.NA, 0],
266-
"c": np.repeat(pd.NA, 8),
267-
"d": np.repeat(pd.NA, 8),
266+
"c": np.repeat(pd.NA, 8), # type: ignore[call-overload]
267+
"d": np.repeat(pd.NA, 8), # type: ignore[call-overload]
268268
},
269269
dtype="Int64",
270270
),

0 commit comments

Comments
 (0)