Skip to content

Commit 5447ff6

Browse files
Jadikersrittau
authored andcommitted
str and unicode format functions take objects (#3068)
1 parent 6258e7d commit 5447ff6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

stdlib/2/__builtin__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ else:
332332
end: int = ...) -> bool: ...
333333
def expandtabs(self, tabsize: int = ...) -> unicode: ...
334334
def find(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...
335-
def format(self, *args: Any, **kwargs: Any) -> unicode: ...
335+
def format(self, *args: object, **kwargs: object) -> unicode: ...
336336
def index(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...
337337
def isalnum(self) -> bool: ...
338338
def isalpha(self) -> bool: ...
@@ -421,7 +421,7 @@ class str(Sequence[str], _str_base):
421421
def endswith(self, suffix: Union[Text, Tuple[Text, ...]]) -> bool: ...
422422
def expandtabs(self, tabsize: int = ...) -> str: ...
423423
def find(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
424-
def format(self, *args: Any, **kwargs: Any) -> str: ...
424+
def format(self, *args: object, **kwargs: object) -> str: ...
425425
if sys.version_info >= (3,):
426426
def format_map(self, map: Mapping[str, Any]) -> str: ...
427427
def index(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...

stdlib/2and3/builtins.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ else:
332332
end: int = ...) -> bool: ...
333333
def expandtabs(self, tabsize: int = ...) -> unicode: ...
334334
def find(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...
335-
def format(self, *args: Any, **kwargs: Any) -> unicode: ...
335+
def format(self, *args: object, **kwargs: object) -> unicode: ...
336336
def index(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...
337337
def isalnum(self) -> bool: ...
338338
def isalpha(self) -> bool: ...
@@ -421,7 +421,7 @@ class str(Sequence[str], _str_base):
421421
def endswith(self, suffix: Union[Text, Tuple[Text, ...]]) -> bool: ...
422422
def expandtabs(self, tabsize: int = ...) -> str: ...
423423
def find(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
424-
def format(self, *args: Any, **kwargs: Any) -> str: ...
424+
def format(self, *args: object, **kwargs: object) -> str: ...
425425
if sys.version_info >= (3,):
426426
def format_map(self, map: Mapping[str, Any]) -> str: ...
427427
def index(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...

0 commit comments

Comments
 (0)