Lint fixes

This commit is contained in:
Andrew Murray 2025-04-26 14:19:53 +10:00
parent ff269abd96
commit 661c0d8a35
3 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,8 @@ def test_seeking() -> None:
assert im1.info["timestamp"] == im1.info["timestamp"]
assert total_dur == 8000
assert im1.tell() == 0 and im2.tell() == 0
assert im1.tell() == 0
assert im2.tell() == 0
im1.seek(0)
im1.load()

View File

@ -2,6 +2,7 @@ from __future__ import annotations
import struct
from io import BytesIO
from typing import Any
from . import Image, ImageFile
@ -81,7 +82,7 @@ class JpegXlImageFile(ImageFile.ImageFile):
exif_start_offset = struct.unpack(">I", exif[:4])[0]
return exif[exif_start_offset + 4 :]
def _getexif(self) -> dict[str, str] | None:
def _getexif(self) -> dict[int, Any] | None:
if "exif" not in self.info:
return None
return self.getexif()._get_merged_dict()

View File

@ -1,5 +1,3 @@
from __future__ import annotations
from typing import Any
def __getattr__(name: str) -> Any: ...