We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 618462f commit 762d0bcCopy full SHA for 762d0bc
pandas/tests/dtypes/test_inference.py
@@ -75,7 +75,7 @@ def coerce(request):
75
(iter([1, 2]), True, "iterator"), # noqa: E241
76
(iter([]), True, "iterator-empty"), # noqa: E241
77
((x for x in [1, 2]), True, "generator"), # noqa: E241
78
- ((x for x in []), True, "generator-empty"), # noqa: E241
+ ((_ for _ in []), True, "generator-empty"), # noqa: E241
79
(Series([1]), True, "Series"), # noqa: E241
80
(Series([]), True, "Series-empty"), # noqa: E241
81
(Series(["a"]).str, True, "StringMethods"), # noqa: E241
@@ -288,7 +288,10 @@ class MockFile:
288
assert not is_file(data)
289
290
291
-@pytest.mark.parametrize("ll", [collections.namedtuple("Test", list("abc"))(1, 2, 3)])
+test_tuple = collections.namedtuple("Test", ["a", "b", "c"])
292
+
293
294
+@pytest.mark.parametrize("ll", [test_tuple(1, 2, 3)])
295
def test_is_names_tuple_passes(ll):
296
assert inference.is_named_tuple(ll)
297
setup.cfg
@@ -148,9 +148,6 @@ ignore_errors=True
148
[mypy-pandas.tests.dtypes.test_common]
149
ignore_errors=True
150
151
-[mypy-pandas.tests.dtypes.test_inference]
152
-ignore_errors=True
153
-
154
[mypy-pandas.tests.extension.decimal.test_decimal]
155
156
0 commit comments