@@ -956,14 +956,27 @@ class DictComp(expr):
956956 else :
957957 value : expr
958958 generators : list [comprehension ]
959- if sys .version_info >= (3 , 13 ):
959+ if sys .version_info >= (3 , 15 ):
960+ def __init__ (
961+ self , key : expr , value : expr | None = None , generators : list [comprehension ] = ..., ** kwargs : Unpack [_Attributes ]
962+ ) -> None : ...
963+ elif sys .version_info >= (3 , 13 ):
960964 def __init__ (
961965 self , key : expr , value : expr , generators : list [comprehension ] = ..., ** kwargs : Unpack [_Attributes ]
962966 ) -> None : ...
963967 else :
964968 def __init__ (self , key : expr , value : expr , generators : list [comprehension ], ** kwargs : Unpack [_Attributes ]) -> None : ...
965969
966- if sys .version_info >= (3 , 14 ):
970+ if sys .version_info >= (3 , 15 ):
971+ def __replace__ (
972+ self ,
973+ * ,
974+ key : expr = ...,
975+ value : expr | None = ...,
976+ generators : list [comprehension ] = ...,
977+ ** kwargs : Unpack [_Attributes ],
978+ ) -> Self : ...
979+ elif sys .version_info >= (3 , 14 ):
967980 def __replace__ (
968981 self , * , key : expr = ..., value : expr = ..., generators : list [comprehension ] = ..., ** kwargs : Unpack [_Attributes ]
969982 ) -> Self : ...
@@ -2147,6 +2160,10 @@ class NodeVisitor:
21472160 def visit_TypeVarTuple (self , node : TypeVarTuple ) -> Any : ...
21482161 def visit_TypeAlias (self , node : TypeAlias ) -> Any : ...
21492162
2163+ if sys .version_info >= (3 , 14 ):
2164+ def visit_TemplateStr (self , node : TemplateStr ) -> Any : ...
2165+ def visit_Interpolation (self , node : Interpolation ) -> Any : ...
2166+
21502167 # visit methods for deprecated nodes
21512168 def visit_ExtSlice (self , node : ExtSlice ) -> Any : ...
21522169 def visit_Index (self , node : Index ) -> Any : ...
0 commit comments