fractions: remove gcd in py39 (#4012)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-05-16 16:57:19 -07:00
committed by GitHub
parent b8b656b437
commit bedccc7497

View File

@@ -12,14 +12,15 @@ import sys
_ComparableNum = Union[int, float, Decimal, Real]
@overload
def gcd(a: int, b: int) -> int: ...
@overload
def gcd(a: Integral, b: int) -> Integral: ...
@overload
def gcd(a: int, b: Integral) -> Integral: ...
@overload
def gcd(a: Integral, b: Integral) -> Integral: ...
if sys.version_info < (3, 9):
@overload
def gcd(a: int, b: int) -> int: ...
@overload
def gcd(a: Integral, b: int) -> Integral: ...
@overload
def gcd(a: int, b: Integral) -> Integral: ...
@overload
def gcd(a: Integral, b: Integral) -> Integral: ...
class Fraction(Rational):