Assert fp is not None

This commit is contained in:
Andrew Murray 2025-12-29 15:13:48 +11:00
parent 193ca321f4
commit 9486b530df

View File

@ -28,6 +28,7 @@ class JpegXlImageFile(ImageFile.ImageFile):
__frame = 0
def _open(self) -> None:
assert self.fp is not None
self._decoder = _jpegxl.JpegXlDecoder(self.fp.read())
(