mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-11 16:52:29 +03:00
Lint fixes
This commit is contained in:
parent
ff269abd96
commit
661c0d8a35
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
def __getattr__(name: str) -> Any: ...
|
||||
|
|
Loading…
Reference in New Issue
Block a user