Skip to content

Commit 1093f98

Browse files
committed
Improve alias signatures
1 parent 76fe3ab commit 1093f98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/cbook/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1915,6 +1915,7 @@ class so far, an alias named ``get_alias`` will be defined; the same will
19151915
return functools.partial(_define_aliases, alias_d)
19161916

19171917
def make_alias(name): # Enforce a closure over *name*.
1918+
@functools.wraps(getattr(cls, name))
19181919
def method(self, *args, **kwargs):
19191920
return getattr(self, name)(*args, **kwargs)
19201921
return method

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