mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-24 03:51:52 +08:00
Make `__round__ positional-only for float, int, Decimal and SupportsRound` (#6242)
This commit is contained in:
@@ -93,7 +93,7 @@ class Decimal(object):
|
||||
@overload
|
||||
def __round__(self) -> int: ...
|
||||
@overload
|
||||
def __round__(self, ndigits: int) -> Decimal: ...
|
||||
def __round__(self, __ndigits: int) -> Decimal: ...
|
||||
def __floor__(self) -> int: ...
|
||||
def __ceil__(self) -> int: ...
|
||||
def fma(self, other: _Decimal, third: _Decimal, context: Context | None = ...) -> Decimal: ...
|
||||
|
||||
Reference in New Issue
Block a user