diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index 73e75dc34e6e..9bb38b8cdaa7 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -447,7 +447,7 @@ class str(Sequence[str]): def center(self: LiteralString, __width: SupportsIndex, __fillchar: LiteralString = " ") -> LiteralString: ... @overload def center(self, __width: SupportsIndex, __fillchar: str = " ") -> str: ... # type: ignore[misc] - def count(self, x: str, __start: SupportsIndex | None = ..., __end: SupportsIndex | None = ...) -> int: ... + def count(self, __sub: str, __start: SupportsIndex | None = ..., __end: SupportsIndex | None = ...) -> int: ... def encode(self, encoding: str = "utf-8", errors: str = "strict") -> bytes: ... def endswith( self, __suffix: str | tuple[str, ...], __start: SupportsIndex | None = ..., __end: SupportsIndex | None = ...