Skip to content

Navigation Menu

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 126515a

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

File tree

1 file changed

+2
-1
lines changed
Filter options

1 file changed

+2
-1
lines changed

‎lib/matplotlib/backend_bases.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backend_bases.py
+2-1Lines changed: 2 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.