mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user