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

Commit1d92f91

Browse files
jungerm2tacaswell
authored andcommitted
fix lru_cache for pre py38
1 parentcb4fff3 commit1d92f91

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎lib/matplotlib/animation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1997,7 +1997,7 @@ def _validate_artists(self, artists, name="animation function",
19971997
returnsorted(artists,key=lambdax:x.get_zorder())
19981998
return []
19991999

2000-
@lru_cache
2000+
@lru_cache()
20012001
def_grab_frames(self):
20022002
# Clear previous data
20032003
self._base_document=None

‎lib/matplotlib/tests/test_animation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,13 +606,13 @@ def update_line(num, data, line):
606606
returnanim
607607

608608

609-
@functools.lru_cache
609+
@functools.lru_cache()
610610
defget_line_anim_frames(constructor,size,tmpdir,fmt="r-",use_init=False):
611611
anim=get_line_anim(constructor,size,fmt=fmt,use_init=use_init)
612612
returnget_frames(anim,size,tmpdir)
613613

614614

615-
@functools.lru_cache
615+
@functools.lru_cache()
616616
defget_text_anim_frames(
617617
constructor,size,tmpdir,init_text="",use_init=False,math_mode=False
618618
):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp