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

Commitb071f39

Browse files
authored
Merge pull request#20855 from lpsinger/cm-attributeerror
BUG: __getattr__ must raise AttributeError if name not found (again)
2 parents2a26787 +a228b1f commitb071f39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎lib/matplotlib/cm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def __getattr__(name):
3434
_api.warn_deprecated("3.5",name=name,
3535
alternative="rcParams['image.lut']")
3636
return_LUTSIZE
37+
raiseAttributeError(f"module{__name__!r} has no attribute{name!r}")
3738

3839

3940
_LUTSIZE=mpl.rcParams['image.lut']

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp