ExifRead: Fix Reader.__iter__() (#12402)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Vinícius Gonçalves de Oliveira
2024-07-22 13:16:14 -03:00
committed by GitHub
parent 6ddef4333d
commit 128d8eb904

View File

@@ -1,5 +1,6 @@
# Stubs-only module with type aliases for ExifRead.
from collections.abc import Iterator
from typing import Any, Literal, Protocol
from typing_extensions import TypeAlias
@@ -8,7 +9,7 @@ from typing_extensions import TypeAlias
TagDict: TypeAlias = dict[int, tuple[str] | tuple[str, Any]]
class Reader(Protocol):
def __iter__(self) -> bytes: ...
def __iter__(self) -> Iterator[bytes]: ...
def read(self, size: int, /) -> bytes: ...
def tell(self) -> int: ...
def seek(self, offset: int, whence: Literal[0, 1] = ..., /) -> object: ...