str and unicode format functions take objects (#3068)

This commit is contained in:
Jadiker
2019-06-17 14:09:11 -04:00
committed by Sebastian Rittau
parent 6258e7ddfd
commit 5447ff6bfe
2 changed files with 4 additions and 4 deletions

View File

@@ -332,7 +332,7 @@ else:
end: int = ...) -> bool: ...
def expandtabs(self, tabsize: int = ...) -> unicode: ...
def find(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...
def format(self, *args: Any, **kwargs: Any) -> unicode: ...
def format(self, *args: object, **kwargs: object) -> unicode: ...
def index(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...
def isalnum(self) -> bool: ...
def isalpha(self) -> bool: ...
@@ -421,7 +421,7 @@ class str(Sequence[str], _str_base):
def endswith(self, suffix: Union[Text, Tuple[Text, ...]]) -> bool: ...
def expandtabs(self, tabsize: int = ...) -> str: ...
def find(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
def format(self, *args: Any, **kwargs: Any) -> str: ...
def format(self, *args: object, **kwargs: object) -> str: ...
if sys.version_info >= (3,):
def format_map(self, map: Mapping[str, Any]) -> str: ...
def index(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...