Skip to content

Commit 126515a

Browse files
authored
Merge pull request #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

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy