mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-01 21:50:21 +08:00
Add from_number for float, complex, and Fraction (3.14) (#14091)
This commit is contained in:
@@ -145,3 +145,6 @@ class Fraction(Rational):
|
||||
@property
|
||||
def imag(self) -> Literal[0]: ...
|
||||
def conjugate(self) -> Fraction: ...
|
||||
if sys.version_info >= (3, 14):
|
||||
@classmethod
|
||||
def from_number(cls, number: float | Rational | _ConvertibleToIntegerRatio) -> Self: ...
|
||||
|
||||
Reference in New Issue
Block a user