Skip to content

Commit a19c844

Browse files
committed
CLN: fix mypy errors in pandas/tests/extension/test_numpy.py pandas-dev#28926
1 parent f7d162b commit a19c844

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
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 Type, Union
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: Union[Type[Exception], None]
66+
frame_scalar_exc = TypeError # type: Union[Type[Exception], None]
67+
series_array_exc = TypeError # type: Union[Type[Exception], None]
68+
divmod_exc = TypeError # type: Union[Type[Exception], None]
6869

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

setup.cfg

-3
Original file line numberDiff line numberDiff line change
@@ -166,9 +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-
172169
[mypy-pandas.tests.extension.test_sparse]
173170
ignore_errors=True
174171

0 commit comments

Comments
 (0)