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

Commitda764ff

Browse files
greglucasanntzer
authored andcommitted
MNT: Deprecate cbook.maxdict
It was used in one place in the library and there is nowa standard library lru_cache that we can take advantage of instead.
1 parentcd18774 commitda764ff

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
``matplotlib.cbook.maxdict`` is deprecated
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
This class has been deprecated in favor of the standard library
4+
``functools.lru_cache``.

‎lib/matplotlib/cbook/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ def flatten(seq, scalarp=is_scalar_or_string):
540540
yieldfromflatten(item,scalarp)
541541

542542

543+
@_api.deprecated("3.6",alternative="functools.lru_cache")
543544
classmaxdict(dict):
544545
"""
545546
A dictionary with a maximum size.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp