Skip to content

Commit

Permalink
Merge pull request #6998 from radarhere/ifdrational
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Mar 12, 2023
2 parents 436ebdb + 6932562 commit 258cb8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/PIL/TiffImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,9 @@ def delegate(self, *args):
__ceil__ = _delegate("__ceil__")
__floor__ = _delegate("__floor__")
__round__ = _delegate("__round__")
# Python >= 3.11
if hasattr(Fraction, "__int__"):
__int__ = _delegate("__int__")


class ImageFileDirectory_v2(MutableMapping):
Expand Down

0 comments on commit 258cb8d

Please sign in to comment.