mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Make `__round__ positional-only for float, int, Decimal and SupportsRound` (#6242)
This commit is contained in:
@@ -231,7 +231,7 @@ class int:
|
||||
def __trunc__(self) -> int: ...
|
||||
def __ceil__(self) -> int: ...
|
||||
def __floor__(self) -> int: ...
|
||||
def __round__(self, ndigits: SupportsIndex = ...) -> int: ...
|
||||
def __round__(self, __ndigits: SupportsIndex = ...) -> int: ...
|
||||
def __getnewargs__(self) -> tuple[int]: ...
|
||||
def __eq__(self, x: object) -> bool: ...
|
||||
def __ne__(self, x: object) -> bool: ...
|
||||
@@ -283,9 +283,9 @@ class float:
|
||||
def __ceil__(self) -> int: ...
|
||||
def __floor__(self) -> int: ...
|
||||
@overload
|
||||
def __round__(self, ndigits: None = ...) -> int: ...
|
||||
def __round__(self, __ndigits: None = ...) -> int: ...
|
||||
@overload
|
||||
def __round__(self, ndigits: SupportsIndex) -> float: ...
|
||||
def __round__(self, __ndigits: SupportsIndex) -> float: ...
|
||||
def __eq__(self, __x: object) -> bool: ...
|
||||
def __ne__(self, __x: object) -> bool: ...
|
||||
def __lt__(self, __x: float) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user