Skip to content

Commit cf9bdc2

Browse files
author
LeeeeT
authored
Make the first argument of float.__new__ positional-only (#8991)
Closes #8990
1 parent fd75bc2 commit cf9bdc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/builtins.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ class int:
299299
def __index__(self) -> int: ...
300300

301301
class float:
302-
def __new__(cls: type[Self], x: SupportsFloat | SupportsIndex | str | ReadableBuffer = ...) -> Self: ...
302+
def __new__(cls: type[Self], __x: SupportsFloat | SupportsIndex | str | ReadableBuffer = ...) -> Self: ...
303303
def as_integer_ratio(self) -> tuple[int, int]: ...
304304
def hex(self) -> str: ...
305305
def is_integer(self) -> bool: ...

0 commit comments

Comments
 (0)