mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
string: various fixes (#3814)
This commit is contained in:
@@ -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]]]: ...
|
||||
|
||||
Reference in New Issue
Block a user