mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Remove object as the only ancestor for string.Formatter in Python 3 stubs. (#1072)
This commit is contained in:
committed by
Jelle Zijlstra
parent
78d0cc32df
commit
c10dc797e7
@@ -25,7 +25,7 @@ class Template:
|
||||
**kwds: str) -> str: ...
|
||||
|
||||
# TODO(MichalPokorny): This is probably badly and/or loosely typed.
|
||||
class Formatter(object):
|
||||
class Formatter:
|
||||
def format(self, format_string: str, *args: Any, **kwargs: Any) -> str: ...
|
||||
def vformat(self, format_string: str, args: Sequence[Any],
|
||||
kwargs: Mapping[str, Any]) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user