mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
Add default value for expression parameter of string.templatelib.Interpolation (#14403)
Add default for `Interpolation.expression`
This commit is contained in:
@@ -26,6 +26,6 @@ class Interpolation:
|
||||
__match_args__ = ("value", "expression", "conversion", "format_spec")
|
||||
|
||||
def __new__(
|
||||
cls, value: Any, expression: str, conversion: Literal["a", "r", "s"] | None = None, format_spec: str = ""
|
||||
cls, value: Any, expression: str = "", conversion: Literal["a", "r", "s"] | None = None, format_spec: str = ""
|
||||
) -> Interpolation: ...
|
||||
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
||||
|
||||
Reference in New Issue
Block a user