Make string.Template.substitute's arg optional (#535)

This commit is contained in:
Alvaro Caceres
2016-09-12 13:12:28 -05:00
committed by Guido van Rossum
parent 0321b2179b
commit ecc400f125
2 changed files with 4 additions and 4 deletions

View File

@@ -20,8 +20,8 @@ class Template:
template = ... # type: str
def __init__(self, template: str) -> None: ...
def substitute(self, mapping: Mapping[str, str], **kwds: str) -> str: ...
def safe_substitute(self, mapping: Mapping[str, str],
def substitute(self, mapping: Mapping[str, str] = ..., **kwds: str) -> str: ...
def safe_substitute(self, mapping: Mapping[str, str] = ...,
**kwds: str) -> str: ...
# TODO(MichalPokorny): This is probably badly and/or loosely typed.