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:
Yehuda Davis authored and GitHub committed 2021-02-17 17:00:38 -08:00
1 parent f52b154fe7
commit fffa66ff97
1 file changed
-6
-6
View File
@@ -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: ...