From cf9bdc2d9861cb61e76b512988d19afe232a958f Mon Sep 17 00:00:00 2001 From: LeeeeT Date: Thu, 27 Oct 2022 01:42:17 +0300 Subject: [PATCH] Make the first argument of `float.__new__` positional-only (#8991) Closes #8990 --- stdlib/builtins.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index 94bf8a218..63e0a0961 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -299,7 +299,7 @@ class int: def __index__(self) -> int: ... class float: - def __new__(cls: type[Self], x: SupportsFloat | SupportsIndex | str | ReadableBuffer = ...) -> Self: ... + def __new__(cls: type[Self], __x: SupportsFloat | SupportsIndex | str | ReadableBuffer = ...) -> Self: ... def as_integer_ratio(self) -> tuple[int, int]: ... def hex(self) -> str: ... def is_integer(self) -> bool: ...