Remove object as the only ancestor for string.Formatter in Python 3 stubs. (#1072)

This commit is contained in:
Semyon Proshev
2017-03-22 17:33:46 +03:00
committed by Jelle Zijlstra
parent 78d0cc32df
commit c10dc797e7

View File

@@ -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: ...