mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -32,7 +32,7 @@ class Fraction(Rational):
|
||||
def from_float(cls: type[Self], f: float) -> Self: ...
|
||||
@classmethod
|
||||
def from_decimal(cls: type[Self], dec: Decimal) -> Self: ...
|
||||
def limit_denominator(self, max_denominator: int = ...) -> Fraction: ...
|
||||
def limit_denominator(self, max_denominator: int = 1000000) -> Fraction: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
def as_integer_ratio(self) -> tuple[int, int]: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user