diff --git a/pandas/conftest.py b/pandas/conftest.py index 604815d496f80..5fb333acd718d 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -298,7 +298,9 @@ def unique_nulls_fixture(request): # ---------------------------------------------------------------- # Classes # ---------------------------------------------------------------- -@pytest.fixture(params=[pd.Index, pd.Series], ids=["index", "series"]) +@pytest.fixture( + params=[pd.Index, pd.Series], ids=["index", "series"] # type: ignore[list-item] +) def index_or_series(request): """ Fixture to parametrize over Index and Series, made necessary by a mypy diff --git a/pandas/tests/window/conftest.py b/pandas/tests/window/conftest.py index 7f03fa2a5ea0d..3b4ed4859b1cc 100644 --- a/pandas/tests/window/conftest.py +++ b/pandas/tests/window/conftest.py @@ -76,7 +76,12 @@ def nopython(request): @pytest.fixture( - params=[pytest.param("numba", marks=td.skip_if_no("numba", "0.46.0")), "cython"] + params=[ + pytest.param( + "numba", marks=td.skip_if_no("numba", "0.46.0") + ), # type: ignore[list-item] + "cython", + ] ) def engine(request): """engine keyword argument for rolling.apply""" @@ -327,7 +332,7 @@ def halflife_with_times(request): "float64", "m8[ns]", "M8[ns]", - pytest.param( + pytest.param( # type: ignore[list-item] "datetime64[ns, UTC]", marks=pytest.mark.skip( "direct creation of extension dtype datetime64[ns, UTC] " diff --git a/setup.cfg b/setup.cfg index d938d2ef3972a..45951ac3c5db0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -128,9 +128,6 @@ ignore_errors=True [mypy-pandas.tests.*] check_untyped_defs=False -[mypy-pandas.conftest,pandas.tests.window.conftest] -ignore_errors=True - [mypy-pandas._testing] check_untyped_defs=False