Fix type of format_spec attribute of ast.Interpolation (#14331)

This commit is contained in:
Brian Schubert
2025-06-23 22:59:03 -04:00
committed by GitHub
parent 2669de5896
commit d3cfe67377
+3 -3
View File
@@ -1062,13 +1062,13 @@ if sys.version_info >= (3, 14):
value: expr
str: builtins.str
conversion: int
format_spec: builtins.str | None = None
format_spec: expr | None = None
def __init__(
self,
value: expr = ...,
str: builtins.str = ...,
conversion: int = ...,
format_spec: builtins.str | None = ...,
format_spec: expr | None = ...,
**kwargs: Unpack[_Attributes],
) -> None: ...
def __replace__(
@@ -1077,7 +1077,7 @@ if sys.version_info >= (3, 14):
value: expr = ...,
str: builtins.str = ...,
conversion: int = ...,
format_spec: builtins.str | None = ...,
format_spec: expr | None = ...,
**kwargs: Unpack[_Attributes],
) -> Self: ...