Skip to content

Commit 28b7120

Browse files
committed
Applied suggestions, PR also fixes errors in test_sparse.py
1 parent a19c844 commit 28b7120

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

pandas/tests/extension/base/ops.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ class BaseArithmeticOpsTests(BaseOpsUtil):
6262
* divmod_exc = TypeError
6363
"""
6464

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]
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]]
6969

7070
def test_arith_series_with_scalar(self, data, all_arithmetic_operators):
7171
# 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_sparse]
170-
ignore_errors=True
171-
172169
[mypy-pandas.tests.frame.test_constructors]
173170
ignore_errors=True
174171

0 commit comments

Comments
 (0)