Skip to content

Commit eba42bd

Browse files
Add default value for expression parameter of string.templatelib.Interpolation (#14403)
Add default for `Interpolation.expression`
1 parent 9fca76c commit eba42bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/string/templatelib.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ class Interpolation:
2626
__match_args__ = ("value", "expression", "conversion", "format_spec")
2727

2828
def __new__(
29-
cls, value: Any, expression: str, conversion: Literal["a", "r", "s"] | None = None, format_spec: str = ""
29+
cls, value: Any, expression: str = "", conversion: Literal["a", "r", "s"] | None = None, format_spec: str = ""
3030
) -> Interpolation: ...
3131
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...

0 commit comments

Comments
 (0)