Merge pull request #6998 from radarhere/ifdrational

This commit is contained in:
Hugo van Kemenade 2023-03-12 13:09:44 +02:00 committed by GitHub
commit 258cb8d8bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):