Skip to content

Commit 93edcb6

Browse files
AbhijeetKrishnanproost
authored andcommitted
Fix typing errors (pandas-dev#29114)
1 parent 0dd1f03 commit 93edcb6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pandas/tests/dtypes/test_inference.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def coerce(request):
7575
(iter([1, 2]), True, "iterator"), # noqa: E241
7676
(iter([]), True, "iterator-empty"), # noqa: E241
7777
((x for x in [1, 2]), True, "generator"), # noqa: E241
78-
((x for x in []), True, "generator-empty"), # noqa: E241
78+
((_ for _ in []), True, "generator-empty"), # noqa: E241
7979
(Series([1]), True, "Series"), # noqa: E241
8080
(Series([]), True, "Series-empty"), # noqa: E241
8181
(Series(["a"]).str, True, "StringMethods"), # noqa: E241
@@ -288,7 +288,10 @@ class MockFile:
288288
assert not is_file(data)
289289

290290

291-
@pytest.mark.parametrize("ll", [collections.namedtuple("Test", list("abc"))(1, 2, 3)])
291+
test_tuple = collections.namedtuple("Test", ["a", "b", "c"])
292+
293+
294+
@pytest.mark.parametrize("ll", [test_tuple(1, 2, 3)])
292295
def test_is_names_tuple_passes(ll):
293296
assert inference.is_named_tuple(ll)
294297

setup.cfg

-3
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,6 @@ ignore_errors=True
148148
[mypy-pandas.tests.dtypes.test_common]
149149
ignore_errors=True
150150

151-
[mypy-pandas.tests.dtypes.test_inference]
152-
ignore_errors=True
153-
154151
[mypy-pandas.tests.extension.decimal.test_decimal]
155152
ignore_errors=True
156153

0 commit comments

Comments
 (0)