From 598b2d66ed3eef3c6b912ce304768138d5a0ec3f Mon Sep 17 00:00:00 2001 From: Hunter Hogan Date: Mon, 30 Jun 2025 19:12:09 -0500 Subject: [PATCH] fix: ast.NameConstant missing fields --- stdlib/ast.pyi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stdlib/ast.pyi b/stdlib/ast.pyi index 613940f5da6a..8f233ffa29cc 100644 --- a/stdlib/ast.pyi +++ b/stdlib/ast.pyi @@ -1711,7 +1711,9 @@ if sys.version_info < (3, 14): s: bytes @deprecated("Replaced by ast.Constant; removed in Python 3.14") - class NameConstant(Constant, metaclass=_ABC): ... + class NameConstant(Constant, metaclass=_ABC): + value: _ConstantValue + kind: str | None @deprecated("Replaced by ast.Constant; removed in Python 3.14") class Ellipsis(Constant, metaclass=_ABC): ...