mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Make `__round__ positional-only for float, int, Decimal and SupportsRound` (#6242)
This commit is contained in:
@@ -167,7 +167,7 @@ class SupportsRound(Protocol[_T_co]):
|
||||
def __round__(self) -> int: ...
|
||||
@overload
|
||||
@abstractmethod
|
||||
def __round__(self, ndigits: int) -> _T_co: ...
|
||||
def __round__(self, __ndigits: int) -> _T_co: ...
|
||||
|
||||
@runtime_checkable
|
||||
class Sized(Protocol, metaclass=ABCMeta):
|
||||
|
||||
Reference in New Issue
Block a user