string: various fixes (#3814)

This commit is contained in:
Shantanu
2020-03-06 02:02:18 -08:00
committed by GitHub
parent 11d300587e
commit 009e650a1d
3 changed files with 4 additions and 8 deletions

View File

@@ -14,19 +14,19 @@ punctuation: str
printable: str
whitespace: str
def capwords(s: str, sep: str = ...) -> str: ...
def capwords(s: str, sep: Optional[str] = ...) -> str: ...
class Template:
template: str
def __init__(self, template: str) -> None: ...
def substitute(self, mapping: Mapping[str, object] = ..., **kwds: object) -> str: ...
def safe_substitute(self, mapping: Mapping[str, object] = ...,
def substitute(self, __mapping: Mapping[str, object] = ..., **kwds: object) -> str: ...
def safe_substitute(self, __mapping: Mapping[str, object] = ...,
**kwds: object) -> str: ...
# TODO(MichalPokorny): This is probably badly and/or loosely typed.
class Formatter:
def format(self, format_string: str, *args: Any, **kwargs: Any) -> 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]]]: ...