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 jbrockmendel committed Oct 21, 2019
1 parent 030e6fb commit 618462f
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 618462f

Please sign in to comment.