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
2021-02-17 20:00:38 -05:00
committed by GitHub
parent f52b154fe7
commit fffa66ff97

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: ...