mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-23 15:20:33 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
48bbc2e2f8
commit
443a35235a
|
@ -56,7 +56,7 @@ class JpegXlImageFile(ImageFile.ImageFile):
|
|||
if n_frames > 0:
|
||||
self.n_frames = n_frames
|
||||
self._tps_dur_secs = tps_num / tps_denom
|
||||
|
||||
|
||||
# TODO: handle libjxl time codes
|
||||
self.__timestamp = 0
|
||||
|
||||
|
@ -112,7 +112,7 @@ class JpegXlImageFile(ImageFile.ImageFile):
|
|||
|
||||
return data, timestamp, duration, is_last
|
||||
|
||||
def _rewind(self, hard: bool=False) -> None:
|
||||
def _rewind(self, hard: bool = False) -> None:
|
||||
if hard:
|
||||
self._decoder.rewind()
|
||||
self.__physical_frame = 0
|
||||
|
|
Loading…
Reference in New Issue
Block a user