mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Remove unnecessary overload of round() (#5030)
The overloads with float is unnecessary because the float class implements the SupportsRound protocol.
This commit is contained in:
@@ -1200,12 +1200,6 @@ def reversed(__sequence: Sequence[_T]) -> Iterator[_T]: ...
|
||||
def reversed(__sequence: Reversible[_T]) -> Iterator[_T]: ...
|
||||
def repr(__obj: object) -> str: ...
|
||||
@overload
|
||||
def round(number: float) -> int: ...
|
||||
@overload
|
||||
def round(number: float, ndigits: None) -> int: ...
|
||||
@overload
|
||||
def round(number: float, ndigits: int) -> float: ...
|
||||
@overload
|
||||
def round(number: SupportsRound[_T]) -> int: ...
|
||||
@overload
|
||||
def round(number: SupportsRound[_T], ndigits: None) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user