From fffa66ff97c24a68f3c3b251af1a991a60049d86 Mon Sep 17 00:00:00 2001 From: Yehuda Davis Date: Wed, 17 Feb 2021 20:00:38 -0500 Subject: [PATCH] Remove unnecessary overload of round() (#5030) The overloads with float is unnecessary because the float class implements the SupportsRound protocol. --- stdlib/builtins.pyi | 6 ------ 1 file changed, 6 deletions(-) diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index 200711781..1da8f73f8 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -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: ...