File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1769,8 +1769,8 @@ def _init_draw(self):
17691769 self ._drawn_artists = self ._init_func ()
17701770 if self ._blit :
17711771 if self ._drawn_artists is None :
1772- raise RuntimeError ('The init_func must return a '
1773- 'sequence of Artist objects.' )
1772+ raise RuntimeError ('When blit=True, the init_func must '
1773+ 'return a sequence of Artist objects.' )
17741774 for a in self ._drawn_artists :
17751775 a .set_animated (self ._blit )
17761776 self ._save_seq = []
@@ -1787,8 +1787,8 @@ def _draw_frame(self, framedata):
17871787
17881788 if self ._blit :
17891789
1790- err = RuntimeError ('The animation function must return a sequence '
1791- 'of Artist objects.' )
1790+ err = RuntimeError ('When blit=True, the animation function must '
1791+ 'return a sequence of Artist objects.' )
17921792 try :
17931793 # check if a sequence
17941794 iter (self ._drawn_artists )
Original file line number Diff line number Diff line change @@ -206,9 +206,9 @@ class FuncAnimation(TimedAnimation):
206206 def __init__ (
207207 self ,
208208 fig : Figure ,
209- func : Callable [..., Iterable [Artist ]],
209+ func : Callable [..., Iterable [Artist ] | None ],
210210 frames : Iterable | int | Callable [[], Generator ] | None = ...,
211- init_func : Callable [[], Iterable [Artist ]] | None = ...,
211+ init_func : Callable [[], Iterable [Artist ] | None ] | None = ...,
212212 fargs : tuple [Any , ...] | None = ...,
213213 save_count : int | None = ...,
214214 * ,
You can’t perform that action at this time.
0 commit comments