@@ -10,27 +10,28 @@ class _ABC(type):
10
10
if sys .version_info >= (3 , 9 ):
11
11
def __init__ (cls , * args : Unused ) -> None : ...
12
12
13
- @deprecated ("Replaced by ast.Constant; removal scheduled for Python 3.14" )
14
- class Num (Constant , metaclass = _ABC ):
15
- value : int | float | complex
13
+ if sys .version_info < (3 , 14 ):
14
+ @deprecated ("Replaced by ast.Constant; removed in Python 3.14" )
15
+ class Num (Constant , metaclass = _ABC ):
16
+ value : int | float | complex
16
17
17
- @deprecated ("Replaced by ast.Constant; removal scheduled for Python 3.14" )
18
- class Str (Constant , metaclass = _ABC ):
19
- value : str
20
- # Aliases for value, for backwards compatibility
21
- s : str
18
+ @deprecated ("Replaced by ast.Constant; removed in Python 3.14" )
19
+ class Str (Constant , metaclass = _ABC ):
20
+ value : str
21
+ # Aliases for value, for backwards compatibility
22
+ s : str
22
23
23
- @deprecated ("Replaced by ast.Constant; removal scheduled for Python 3.14" )
24
- class Bytes (Constant , metaclass = _ABC ):
25
- value : bytes
26
- # Aliases for value, for backwards compatibility
27
- s : bytes
24
+ @deprecated ("Replaced by ast.Constant; removed in Python 3.14" )
25
+ class Bytes (Constant , metaclass = _ABC ):
26
+ value : bytes
27
+ # Aliases for value, for backwards compatibility
28
+ s : bytes
28
29
29
- @deprecated ("Replaced by ast.Constant; removal scheduled for Python 3.14" )
30
- class NameConstant (Constant , metaclass = _ABC ): ...
30
+ @deprecated ("Replaced by ast.Constant; removed in Python 3.14" )
31
+ class NameConstant (Constant , metaclass = _ABC ): ...
31
32
32
- @deprecated ("Replaced by ast.Constant; removal scheduled for Python 3.14" )
33
- class Ellipsis (Constant , metaclass = _ABC ): ...
33
+ @deprecated ("Replaced by ast.Constant; removed in Python 3.14" )
34
+ class Ellipsis (Constant , metaclass = _ABC ): ...
34
35
35
36
if sys .version_info >= (3 , 9 ):
36
37
class slice (AST ): ...
0 commit comments