diff --git a/stdlib/fractions.pyi b/stdlib/fractions.pyi index 3c6808651..8de5ae209 100644 --- a/stdlib/fractions.pyi +++ b/stdlib/fractions.pyi @@ -134,6 +134,8 @@ class Fraction(Rational): def __le__(self, other: _ComparableNum) -> bool: ... def __ge__(self, other: _ComparableNum) -> bool: ... def __bool__(self) -> bool: ... + if sys.version_info >= (3, 11): + def __int__(self) -> int: ... # Not actually defined within fractions.py, but provides more useful # overrides @property