Skip to content

Commit

Permalink
Simplified type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 14, 2024
1 parent bce5174 commit 323bfb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -3902,7 +3902,7 @@ def __init__(self) -> None:
self._hidden_data: dict[int, Any] = {}
self._ifds: dict[int, dict[int, Any]] = {}
self._info: TiffImagePlugin.ImageFileDirectory_v2 | None = None
self._loaded_exif: bytes | None = None
self._loaded_exif: bytes = b""

def _fixup(self, value: Any) -> Any:
try:
Expand Down Expand Up @@ -3974,7 +3974,7 @@ def load(self, data: bytes) -> None:
self._info.load(self.fp)

def load_from_fp(self, fp: IO[bytes], offset: int | None = None) -> None:
self._loaded_exif = None
self._loaded_exif = b""
self._data.clear()
self._hidden_data.clear()
self._ifds.clear()
Expand Down

0 comments on commit 323bfb6

Please sign in to comment.