Skip to content

Commit 126515a

Browse files
authored
Merge pull request matplotlib#29923 from QuLogic/disabled-signatures
Fix signature of disabled draw methods
2 parents c1a2ec4 + 8673b23 commit 126515a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/backend_bases.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,8 @@ def _draw_disabled(self):
678678
cost of the draw_XYZ calls on the canvas.
679679
"""
680680
no_ops = {
681-
meth_name: lambda *args, **kwargs: None
681+
meth_name: functools.update_wrapper(lambda *args, **kwargs: None,
682+
getattr(RendererBase, meth_name))
682683
for meth_name in dir(RendererBase)
683684
if (meth_name.startswith("draw_")
684685
or meth_name in ["open_group", "close_group"])

0 commit comments

Comments
 (0)