Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion stdlib/2/__builtin__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,9 @@ else:

_str_base = basestring

class _FormatMapMapping(Protocol):
def __getitem__(self, __key: str) -> Any: ...

class str(Sequence[str], _str_base):
if sys.version_info >= (3,):
@overload
Expand All @@ -433,7 +436,7 @@ class str(Sequence[str], _str_base):
def find(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
def format(self, *args: object, **kwargs: object) -> str: ...
if sys.version_info >= (3,):
def format_map(self, map: Mapping[str, Any]) -> str: ...
def format_map(self, map: _FormatMapMapping) -> str: ...
def index(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
def isalnum(self) -> bool: ...
def isalpha(self) -> bool: ...
Expand Down
5 changes: 4 additions & 1 deletion stdlib/2and3/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,9 @@ else:

_str_base = basestring

class _FormatMapMapping(Protocol):
def __getitem__(self, __key: str) -> Any: ...

class str(Sequence[str], _str_base):
if sys.version_info >= (3,):
@overload
Expand All @@ -433,7 +436,7 @@ class str(Sequence[str], _str_base):
def find(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
def format(self, *args: object, **kwargs: object) -> str: ...
if sys.version_info >= (3,):
def format_map(self, map: Mapping[str, Any]) -> str: ...
def format_map(self, map: _FormatMapMapping) -> str: ...
def index(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
def isalnum(self) -> bool: ...
def isalpha(self) -> bool: ...
Expand Down