Skip to content

Commit 128d8eb

Browse files
ExifRead: Fix Reader.__iter__() (#12402)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
1 parent 6ddef43 commit 128d8eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stubs/ExifRead/exifread/_types.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Stubs-only module with type aliases for ExifRead.
22

3+
from collections.abc import Iterator
34
from typing import Any, Literal, Protocol
45
from typing_extensions import TypeAlias
56

@@ -8,7 +9,7 @@ from typing_extensions import TypeAlias
89
TagDict: TypeAlias = dict[int, tuple[str] | tuple[str, Any]]
910

1011
class Reader(Protocol):
11-
def __iter__(self) -> bytes: ...
12+
def __iter__(self) -> Iterator[bytes]: ...
1213
def read(self, size: int, /) -> bytes: ...
1314
def tell(self) -> int: ...
1415
def seek(self, offset: int, whence: Literal[0, 1] = ..., /) -> object: ...

0 commit comments

Comments
 (0)