Add default value for expression parameter of string.templatelib.Interpolation (#14403)

Add default for `Interpolation.expression`
This commit is contained in:
Brian Schubert
2025-07-12 13:18:25 -04:00
committed by GitHub
parent 9fca76c55f
commit eba42bdf9e
+1 -1
View File
@@ -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: ...