Added comment [ci skip]

This commit is contained in:
Andrew Murray 2020-03-20 17:49:36 +11:00
parent ff6ca4159a
commit 4f9118bdbd

View File

@ -206,6 +206,9 @@ class Jpeg2KImageFile(ImageFile.ImageFile):
@property @property
def reduce(self): def reduce(self):
# https://github.com/python-pillow/Pillow/issues/4343 found that the
# new Image 'reduce' method was shadowed by this plugin's 'reduce'
# property. This attempts to allow for both scenarios
return self._reduce or super().reduce return self._reduce or super().reduce
@reduce.setter @reduce.setter