mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 03:41:28 +08:00
fractions: make Fraction satisfy SupportsRound (#4697)
Helps with https://github.com/python/mypy/issues/9628 Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -71,10 +71,10 @@ class Real(Complex, SupportsFloat):
|
||||
def __ceil__(self) -> int: ...
|
||||
@abstractmethod
|
||||
@overload
|
||||
def __round__(self, ndigits: int) -> Any: ...
|
||||
def __round__(self, ndigits: None = ...) -> int: ...
|
||||
@abstractmethod
|
||||
@overload
|
||||
def __round__(self, ndigits: None = ...) -> int: ...
|
||||
def __round__(self, ndigits: int) -> Any: ...
|
||||
def __divmod__(self, other: Any) -> Any: ...
|
||||
def __rdivmod__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
|
||||
Reference in New Issue
Block a user