mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
str and unicode format functions take objects (#3068)
This commit is contained in:
committed by
Sebastian Rittau
parent
6258e7ddfd
commit
5447ff6bfe
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user