Skip to content

Commit 0ecff23

Browse files
TYP: Ignore remaining mypy errors for pandas\tests\* (#36724)
1 parent 05befd4 commit 0ecff23

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

pandas/conftest.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,9 @@ def unique_nulls_fixture(request):
298298
# ----------------------------------------------------------------
299299
# Classes
300300
# ----------------------------------------------------------------
301-
@pytest.fixture(params=[pd.Index, pd.Series], ids=["index", "series"])
301+
@pytest.fixture(
302+
params=[pd.Index, pd.Series], ids=["index", "series"] # type: ignore[list-item]
303+
)
302304
def index_or_series(request):
303305
"""
304306
Fixture to parametrize over Index and Series, made necessary by a mypy

pandas/tests/window/conftest.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,12 @@ def nopython(request):
7676

7777

7878
@pytest.fixture(
79-
params=[pytest.param("numba", marks=td.skip_if_no("numba", "0.46.0")), "cython"]
79+
params=[
80+
pytest.param(
81+
"numba", marks=td.skip_if_no("numba", "0.46.0")
82+
), # type: ignore[list-item]
83+
"cython",
84+
]
8085
)
8186
def engine(request):
8287
"""engine keyword argument for rolling.apply"""
@@ -327,7 +332,7 @@ def halflife_with_times(request):
327332
"float64",
328333
"m8[ns]",
329334
"M8[ns]",
330-
pytest.param(
335+
pytest.param( # type: ignore[list-item]
331336
"datetime64[ns, UTC]",
332337
marks=pytest.mark.skip(
333338
"direct creation of extension dtype datetime64[ns, UTC] "

setup.cfg

-3
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ ignore_errors=True
129129
[mypy-pandas.tests.*]
130130
check_untyped_defs=False
131131

132-
[mypy-pandas.conftest,pandas.tests.window.conftest]
133-
ignore_errors=True
134-
135132
[mypy-pandas._testing]
136133
check_untyped_defs=False
137134

0 commit comments

Comments
 (0)