Correct str.__new__ argument name (#7422)

This commit is contained in:
Martin Fischer
2022-03-02 11:20:45 +01:00
committed by GitHub
parent 01244bb68f
commit 5802e889c7

View File

@@ -366,7 +366,7 @@ class str(Sequence[str]):
@overload
def __new__(cls: type[Self], object: object = ...) -> Self: ...
@overload
def __new__(cls: type[Self], o: bytes, encoding: str = ..., errors: str = ...) -> Self: ...
def __new__(cls: type[Self], object: bytes, encoding: str = ..., errors: str = ...) -> Self: ...
def capitalize(self) -> str: ...
def casefold(self) -> str: ...
def center(self, __width: SupportsIndex, __fillchar: str = ...) -> str: ...