Skip to content

Commit

Permalink
Fix typing errors (pandas-dev#29114)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhijeetKrishnan authored and Blake Hawkins committed Oct 29, 2019
1 parent 08d66f3 commit 140102b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 5 additions & 2 deletions pandas/tests/dtypes/test_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def coerce(request):
(iter([1, 2]), True, "iterator"), # noqa: E241
(iter([]), True, "iterator-empty"), # noqa: E241
((x for x in [1, 2]), True, "generator"), # noqa: E241
((x for x in []), True, "generator-empty"), # noqa: E241
((_ for _ in []), True, "generator-empty"), # noqa: E241
(Series([1]), True, "Series"), # noqa: E241
(Series([]), True, "Series-empty"), # noqa: E241
(Series(["a"]).str, True, "StringMethods"), # noqa: E241
Expand Down Expand Up @@ -288,7 +288,10 @@ class MockFile:
assert not is_file(data)


@pytest.mark.parametrize("ll", [collections.namedtuple("Test", list("abc"))(1, 2, 3)])
test_tuple = collections.namedtuple("Test", ["a", "b", "c"])


@pytest.mark.parametrize("ll", [test_tuple(1, 2, 3)])
def test_is_names_tuple_passes(ll):
assert inference.is_named_tuple(ll)

Expand Down
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,6 @@ ignore_errors=True
ignore_errors=True


[mypy-pandas.tests.dtypes.test_inference]
ignore_errors=True

[mypy-pandas.tests.extension.decimal.test_decimal]
ignore_errors=True

Expand Down

0 comments on commit 140102b

Please sign in to comment.