Skip to content

Commit

Permalink
CLN: fix mypy errors in pandas/tests/extension/test_numpy.py #28926 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasbk authored and WillAyd committed Oct 13, 2019
1 parent f7d162b commit 625c550
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
9 changes: 5 additions & 4 deletions pandas/tests/extension/base/ops.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import operator
from typing import Optional, Type

import pytest

Expand Down Expand Up @@ -61,10 +62,10 @@ class BaseArithmeticOpsTests(BaseOpsUtil):
* divmod_exc = TypeError
"""

series_scalar_exc = TypeError
frame_scalar_exc = TypeError
series_array_exc = TypeError
divmod_exc = TypeError
series_scalar_exc = TypeError # type: Optional[Type[TypeError]]
frame_scalar_exc = TypeError # type: Optional[Type[TypeError]]
series_array_exc = TypeError # type: Optional[Type[TypeError]]
divmod_exc = TypeError # type: Optional[Type[TypeError]]

def test_arith_series_with_scalar(self, data, all_arithmetic_operators):
# series & scalar
Expand Down
6 changes: 0 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,6 @@ ignore_errors=True
[mypy-pandas.tests.extension.json.test_json]
ignore_errors=True

[mypy-pandas.tests.extension.test_numpy]
ignore_errors=True

[mypy-pandas.tests.extension.test_sparse]
ignore_errors=True

[mypy-pandas.tests.frame.test_constructors]
ignore_errors=True

Expand Down

0 comments on commit 625c550

Please sign in to comment.