Skip to content

Commit 0187f73

Browse files
committed
Amended pandas-dev#29016 according to comments
Switched from obj.__setattr__(...) to setattr(obj, ...) python/mypy#7171 (comment)
1 parent d545568 commit 0187f73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/plotting/test_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import pandas
1010

1111
dummy_backend = types.ModuleType("pandas_dummy_backend")
12-
dummy_backend.__setattr__("plot", lambda *args, **kwargs: None)
12+
setattr(dummy_backend, "plot", lambda *args, **kwargs: None)
1313

1414

1515
@pytest.fixture

0 commit comments

Comments
 (0)