mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-12 01:02:39 +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 im1.info["timestamp"] == im1.info["timestamp"]
|
||||||
assert total_dur == 8000
|
assert total_dur == 8000
|
||||||
|
|
||||||
assert im1.tell() == 0 and im2.tell() == 0
|
assert im1.tell() == 0
|
||||||
|
assert im2.tell() == 0
|
||||||
|
|
||||||
im1.seek(0)
|
im1.seek(0)
|
||||||
im1.load()
|
im1.load()
|
||||||
|
|
|
@ -2,6 +2,7 @@ from __future__ import annotations
|
||||||
|
|
||||||
import struct
|
import struct
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
from typing import Any
|
||||||
|
|
||||||
from . import Image, ImageFile
|
from . import Image, ImageFile
|
||||||
|
|
||||||
|
@ -81,7 +82,7 @@ class JpegXlImageFile(ImageFile.ImageFile):
|
||||||
exif_start_offset = struct.unpack(">I", exif[:4])[0]
|
exif_start_offset = struct.unpack(">I", exif[:4])[0]
|
||||||
return exif[exif_start_offset + 4 :]
|
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:
|
if "exif" not in self.info:
|
||||||
return None
|
return None
|
||||||
return self.getexif()._get_merged_dict()
|
return self.getexif()._get_merged_dict()
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
from __future__ import annotations
|
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
def __getattr__(name: str) -> Any: ...
|
def __getattr__(name: str) -> Any: ...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user