8000 Fix signature of disabled draw methods · matplotlib/matplotlib@b9e94e4 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b9e94e4

Browse files
committed
Fix signature of disabled draw methods
1 parent cbd7523 commit b9e94e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,8 @@ def _draw_disabled(self):
668668
cost of the draw_XYZ calls on the canvas.
669669
"""
670670
no_ops = {
671-
meth_name: lambda *args, **kwargs: None
671+
meth_name: functools.update_wrapper(lambda *args, **kwargs: None,
672+
getattr(RendererBase, meth_name))
672673
for meth_name in dir(RendererBase)
673674
if (meth_name.startswith("draw_")
674675
or meth_name in ["open_group", "close_group"])

0 commit comments

Comments
 (0)
0