Skip to content

Commit

Permalink
CLN: fix mypy error pandas/tests/plotting/test_backend.py (pandas-dev…
Browse files Browse the repository at this point in the history
…#29016)

* CLN: fix mypy error pandas/tests/plotting/test_backend.py

GH28926, mypy didn't like setting non-existant attribute on module.
Dummy function, circumvented with __setattr__
  • Loading branch information
saska authored and proost committed Dec 19, 2019
1 parent de3031d commit 9e5f1b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion pandas/tests/plotting/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import pandas

dummy_backend = types.ModuleType("pandas_dummy_backend")
dummy_backend.plot = lambda *args, **kwargs: None
setattr(dummy_backend, "plot", lambda *args, **kwargs: None)


@pytest.fixture
Expand Down
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,6 @@ ignore_errors=True
[mypy-pandas.tests.io.json.test_ujson]
ignore_errors=True

[mypy-pandas.tests.plotting.test_backend]
ignore_errors=True

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

Expand Down

0 comments on commit 9e5f1b5

Please sign in to comment.