Skip to content

Commit 941de52

Browse files
committed
Ensure Animation.save(writer=...) parameter is correct type
1 parent 7611835 commit 941de52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/animation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,7 @@ def func(current_frame: int, total_frames: int) -> Any
10191019
for anim in all_anim:
10201020
anim._draw_was_started = True
10211021

1022+
_api.check_isinstance((str, AbstractMovieWriter, None), writer=writer)
10221023
if writer is None:
10231024
writer = mpl.rcParams['animation.writer']
10241025
elif (not isinstance(writer, str) and

0 commit comments

Comments
 (0)