Skip to content

Commit 75de48a

Browse files
lukasbkproost
authored andcommitted
CLN: fix mypy errors in pandas/tests/extension/test_numpy.py pandas-dev#28926 (pandas-dev#28947)
1 parent 074420c commit 75de48a

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

pandas/tests/extension/base/ops.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import operator
2+
from typing import Optional, Type
23

34
import pytest
45

@@ -61,10 +62,10 @@ class BaseArithmeticOpsTests(BaseOpsUtil):
6162
* divmod_exc = TypeError
6263
"""
6364

64-
series_scalar_exc = TypeError
65-
frame_scalar_exc = TypeError
66-
series_array_exc = TypeError
67-
divmod_exc = TypeError
65+
series_scalar_exc = TypeError # type: Optional[Type[TypeError]]
66+
frame_scalar_exc = TypeError # type: Optional[Type[TypeError]]
67+
series_array_exc = TypeError # type: Optional[Type[TypeError]]
68+
divmod_exc = TypeError # type: Optional[Type[TypeError]]
6869

6970
def test_arith_series_with_scalar(self, data, all_arithmetic_operators):
7071
# series & scalar

setup.cfg

-6
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,6 @@ ignore_errors=True
166166
[mypy-pandas.tests.extension.json.test_json]
167167
ignore_errors=True
168168

169-
[mypy-pandas.tests.extension.test_numpy]
170-
ignore_errors=True
171-
172-
[mypy-pandas.tests.extension.test_sparse]
173-
ignore_errors=True
174-
175169
[mypy-pandas.tests.frame.test_constructors]
176170
ignore_errors=True
177171

0 commit comments

Comments
 (0)