mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Make string.Template.substitute's arg optional (#535)
This commit is contained in:
committed by
Guido van Rossum
parent
0321b2179b
commit
ecc400f125
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user