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 1093f98

Browse filesBrowse files
committed
Improve alias signatures
1 parent 76fe3ab commit 1093f98
Copy full SHA for 1093f98

File tree

1 file changed

+1
-0
lines changed
Filter options

1 file changed

+1
-0
lines changed

‎lib/matplotlib/cbook/__init__.py

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