Fix string.pyi (#971)

Add missing types for two arguments
This commit is contained in:
Sebastian Meßmer
2017-03-06 16:08:36 +00:00
committed by Guido van Rossum
parent afde2fd234
commit 6ffaadbd67

View File

@@ -26,7 +26,7 @@ class Template:
# TODO(MichalPokorny): This is probably badly and/or loosely typed.
class Formatter(object):
def format(self, format_string: str, *args, **kwargs) -> str: ...
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: ...
def parse(self, format_string: str) -> Iterable[Tuple[str, Optional[str], Optional[str], Optional[str]]]: ...