Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit1093f98

Browse files
committed
Improve alias signatures
1 parent76fe3ab commit1093f98

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
returnfunctools.partial(_define_aliases,alias_d)
19161916

19171917
defmake_alias(name):# Enforce a closure over *name*.
1918+
@functools.wraps(getattr(cls,name))
19181919
defmethod(self,*args,**kwargs):
19191920
returngetattr(self,name)(*args,**kwargs)
19201921
returnmethod

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp