From d3cfe673779889a7cfbdac0529c32b2dda34d772 Mon Sep 17 00:00:00 2001 From: Brian Schubert Date: Mon, 23 Jun 2025 22:59:03 -0400 Subject: [PATCH] Fix type of `format_spec` attribute of `ast.Interpolation` (#14331) --- stdlib/ast.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/ast.pyi b/stdlib/ast.pyi index 2f5785b02..613940f5d 100644 --- a/stdlib/ast.pyi +++ b/stdlib/ast.pyi @@ -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: ...