Skip to content

Commit

Permalink
Fix mypy errors in testcommon py (pandas-dev#29179)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake Hawkins authored and proost committed Dec 19, 2019
1 parent 34d42d2 commit 768707a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
20 changes: 17 additions & 3 deletions pandas/tests/dtypes/test_common.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import List

import numpy as np
import pytest

Expand Down Expand Up @@ -322,9 +324,13 @@ def test_is_datetimelike():
assert com.is_datetimelike(s)


integer_dtypes = [] # type: List


@pytest.mark.parametrize(
"dtype",
[pd.Series([1, 2])]
integer_dtypes
+ [pd.Series([1, 2])]
+ ALL_INT_DTYPES
+ to_numpy_dtypes(ALL_INT_DTYPES)
+ ALL_EA_INT_DTYPES
Expand All @@ -350,9 +356,13 @@ def test_is_not_integer_dtype(dtype):
assert not com.is_integer_dtype(dtype)


signed_integer_dtypes = [] # type: List


@pytest.mark.parametrize(
"dtype",
[pd.Series([1, 2])]
signed_integer_dtypes
+ [pd.Series([1, 2])]
+ SIGNED_INT_DTYPES
+ to_numpy_dtypes(SIGNED_INT_DTYPES)
+ SIGNED_EA_INT_DTYPES
Expand Down Expand Up @@ -382,9 +392,13 @@ def test_is_not_signed_integer_dtype(dtype):
assert not com.is_signed_integer_dtype(dtype)


unsigned_integer_dtypes = [] # type: List


@pytest.mark.parametrize(
"dtype",
[pd.Series([1, 2], dtype=np.uint32)]
unsigned_integer_dtypes
+ [pd.Series([1, 2], dtype=np.uint32)]
+ UNSIGNED_INT_DTYPES
+ to_numpy_dtypes(UNSIGNED_INT_DTYPES)
+ UNSIGNED_EA_INT_DTYPES
Expand Down
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@ ignore_errors=True
[mypy-pandas.tests.arithmetic.test_datetime64]
ignore_errors=True

[mypy-pandas.tests.dtypes.test_common]
ignore_errors=True

[mypy-pandas.tests.extension.decimal.test_decimal]
ignore_errors=True

Expand Down

0 comments on commit 768707a

Please sign in to comment.