diff --git a/pandas/tests/dtypes/test_common.py b/pandas/tests/dtypes/test_common.py index 466b724f98770..ecf6e0e34141d 100644 --- a/pandas/tests/dtypes/test_common.py +++ b/pandas/tests/dtypes/test_common.py @@ -1,3 +1,5 @@ +from typing import List, cast + import numpy as np import pytest @@ -325,7 +327,7 @@ def test_is_datetimelike(): @pytest.mark.parametrize( "dtype", [pd.Series([1, 2])] - + ALL_INT_DTYPES + + cast(List[pd.Series], ALL_INT_DTYPES) + to_numpy_dtypes(ALL_INT_DTYPES) + ALL_EA_INT_DTYPES + to_ea_dtypes(ALL_EA_INT_DTYPES), @@ -353,7 +355,7 @@ def test_is_not_integer_dtype(dtype): @pytest.mark.parametrize( "dtype", [pd.Series([1, 2])] - + SIGNED_INT_DTYPES + + cast(List[pd.Series], SIGNED_INT_DTYPES) + to_numpy_dtypes(SIGNED_INT_DTYPES) + SIGNED_EA_INT_DTYPES + to_ea_dtypes(SIGNED_EA_INT_DTYPES), @@ -385,7 +387,7 @@ def test_is_not_signed_integer_dtype(dtype): @pytest.mark.parametrize( "dtype", [pd.Series([1, 2], dtype=np.uint32)] - + UNSIGNED_INT_DTYPES + + cast(List[pd.Series], UNSIGNED_INT_DTYPES) + to_numpy_dtypes(UNSIGNED_INT_DTYPES) + UNSIGNED_EA_INT_DTYPES + to_ea_dtypes(UNSIGNED_EA_INT_DTYPES), diff --git a/setup.cfg b/setup.cfg index ca1ca4a7b5733..aa1963b7c14b8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -145,9 +145,6 @@ ignore_errors=True [mypy-pandas.tests.arrays.test_period] ignore_errors=True -[mypy-pandas.tests.dtypes.test_common] -ignore_errors=True - [mypy-pandas.tests.dtypes.test_inference] ignore_errors=True