mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 09:26:16 +03:00
Merge pull request #6998 from radarhere/ifdrational
This commit is contained in:
commit
258cb8d8bf
|
@ -425,6 +425,9 @@ class IFDRational(Rational):
|
|||
__ceil__ = _delegate("__ceil__")
|
||||
__floor__ = _delegate("__floor__")
|
||||
__round__ = _delegate("__round__")
|
||||
# Python >= 3.11
|
||||
if hasattr(Fraction, "__int__"):
|
||||
__int__ = _delegate("__int__")
|
||||
|
||||
|
||||
class ImageFileDirectory_v2(MutableMapping):
|
||||
|
|
Loading…
Reference in New Issue
Block a user