mirror of
https://github.com/python-pillow/Pillow.git
synced 2026-02-05 14:59:32 +03:00
Assert fp is not None
This commit is contained in:
parent
193ca321f4
commit
9486b530df
|
|
@ -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())
|
||||
|
||||
(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user