@@ -4,27 +4,30 @@ from _ast import *
44from _typeshed import ReadableBuffer , Unused
55from collections .abc import Iterator
66from typing import Any , TypeVar as _TypeVar , overload
7- from typing_extensions import Literal
7+ from typing_extensions import Literal , deprecated
88
99if sys .version_info >= (3 , 8 ):
1010 class _ABC (type ):
1111 if sys .version_info >= (3 , 9 ):
1212 def __init__ (cls , * args : Unused ) -> None : ...
1313
14+ @deprecated ("Replaced by ast.Constant; removal scheduled for Python 3.14" )
1415 class Num (Constant , metaclass = _ABC ):
1516 value : int | float | complex
16-
17+ @ deprecated ( "Replaced by ast.Constant; removal scheduled for Python 3.14" )
1718 class Str (Constant , metaclass = _ABC ):
1819 value : str
1920 # Aliases for value, for backwards compatibility
2021 s : str
21-
22+ @ deprecated ( "Replaced by ast.Constant; removal scheduled for Python 3.14" )
2223 class Bytes (Constant , metaclass = _ABC ):
2324 value : bytes
2425 # Aliases for value, for backwards compatibility
2526 s : bytes
26-
27+ @ deprecated ( "Replaced by ast.Constant; removal scheduled for Python 3.14" )
2728 class NameConstant (Constant , metaclass = _ABC ): ...
29+
30+ @deprecated ("Replaced by ast.Constant; removal scheduled for Python 3.14" )
2831 class Ellipsis (Constant , metaclass = _ABC ): ...
2932
3033if sys .version_info >= (3 , 9 ):
0 commit comments