Skip to content

Commit

Permalink
Fix typing errors (pandas-dev#29115)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhijeetKrishnan authored and Nico Cernek committed Jan 1, 2020
1 parent 7c36046 commit 8737330
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pandas/tests/frame/test_constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ class TestDataFrameConstructors:
lambda: DataFrame({}),
lambda: DataFrame(()),
lambda: DataFrame([]),
lambda: DataFrame((x for x in [])),
lambda: DataFrame((_ for _ in [])),
lambda: DataFrame(range(0)),
lambda: DataFrame(data=None),
lambda: DataFrame(data={}),
lambda: DataFrame(data=()),
lambda: DataFrame(data=[]),
lambda: DataFrame(data=(x for x in [])),
lambda: DataFrame(data=(_ for _ in [])),
lambda: DataFrame(data=range(0)),
],
)
Expand All @@ -72,7 +72,7 @@ def test_empty_constructor(self, constructor):
[
([[]], RangeIndex(1), RangeIndex(0)),
([[], []], RangeIndex(2), RangeIndex(0)),
([(x for x in [])], RangeIndex(1), RangeIndex(0)),
([(_ for _ in [])], RangeIndex(1), RangeIndex(0)),
],
)
def test_emptylike_constructor(self, emptylike, expected_index, expected_columns):
Expand Down
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,6 @@ ignore_errors=True
[mypy-pandas.tests.extension.json.test_json]
ignore_errors=True

[mypy-pandas.tests.frame.test_constructors]
ignore_errors=True

[mypy-pandas.tests.indexes.datetimes.test_datetimelike]
ignore_errors=True

Expand Down

0 comments on commit 8737330

Please sign in to comment.