Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 170885a

Browse files
committed
Fix type of writer argument to Animation.save
Internally, a `PillowWriter` is sometimes used, and this should be supported from user code as well.
1 parent 393cc34 commit 170885a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/animation.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class Animation:
162162
def save(
163163
self,
164164
filename: str | Path,
165-
writer: MovieWriter | str | None = ...,
165+
writer: AbstractMovieWriter | str | None = ...,
166166
fps: int | None = ...,
167167
dpi: float | None = ...,
168168
codec: str | None = ...,

0 commit comments

Comments
 (0)