Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ImageSequence.pyi #11625

Merged
merged 2 commits into from
Mar 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions stubs/Pillow/PIL/ImageSequence.pyi
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
from _typeshed import Incomplete
from collections.abc import Callable
from typing_extensions import Self

from .Image import Image

class Iterator:
im: Incomplete
position: Incomplete
def __init__(self, im) -> None: ...
def __getitem__(self, ix): ...
def __iter__(self): ...
def __next__(self): ...
im: Image
position: int
def __init__(self, im: Image) -> None: ...
def __getitem__(self, ix: int) -> Image: ...
def __iter__(self) -> Self: ...
def __next__(self) -> Image: ...

def all_frames(im, func: Incomplete | None = None): ...
def all_frames(im: Image | list[Image], func: Callable[[Image], Image] | None = None) -> list[Image]: ...
Loading