@@ -174,6 +174,7 @@ class FunctionDef(stmt):
174174 returns : expr | None = ...,
175175 type_comment : str | None = ...,
176176 type_params : list [type_param ] = ...,
177+ ** kwargs : Unpack [_Attributes ],
177178 ) -> Self : ...
178179
179180class AsyncFunctionDef (stmt ):
@@ -245,11 +246,11 @@ class AsyncFunctionDef(stmt):
245246 * ,
246247 name : str = ...,
247248 args : arguments = ...,
248- body : list [stmt ],
249- decorator_list : list [expr ],
250- returns : expr | None ,
251- type_comment : str | None ,
252- type_params : list [type_param ],
249+ body : list [stmt ] = ... ,
250+ decorator_list : list [expr ] = ... ,
251+ returns : expr | None = ... ,
252+ type_comment : str | None = ... ,
253+ type_params : list [type_param ] = ... ,
253254 ) -> Self : ...
254255
255256class ClassDef (stmt ):
@@ -301,12 +302,12 @@ class ClassDef(stmt):
301302 def __replace__ (
302303 self ,
303304 * ,
304- name : str ,
305- bases : list [expr ],
306- keywords : list [keyword ],
307- body : list [stmt ],
308- decorator_list : list [expr ],
309- type_params : list [type_param ],
305+ name : str = ... ,
306+ bases : list [expr ] = ... ,
307+ keywords : list [keyword ] = ... ,
308+ body : list [stmt ] = ... ,
309+ decorator_list : list [expr ] = ... ,
310+ type_params : list [type_param ] = ... ,
310311 ** kwargs : Unpack [_Attributes ],
311312 ) -> Self : ...
312313
@@ -377,7 +378,7 @@ if sys.version_info >= (3, 12):
377378 ) -> None : ...
378379
379380 if sys .version_info >= (3 , 14 ):
380- def __replace__ (
381+ def __replace__ ( # type: ignore[override]
381382 self ,
382383 * ,
383384 name : Name = ...,
@@ -540,7 +541,9 @@ class While(stmt):
540541 def __init__ (self , test : expr , body : list [stmt ], orelse : list [stmt ], ** kwargs : Unpack [_Attributes ]) -> None : ...
541542
542543 if sys .version_info >= (3 , 14 ):
543- def __replace__ (self , * , test : expr , body : list [stmt ], orelse : list [stmt ], ** kwargs : Unpack [_Attributes ]) -> Self : ...
544+ def __replace__ (
545+ self , * , test : expr = ..., body : list [stmt ] = ..., orelse : list [stmt ] = ..., ** kwargs : Unpack [_Attributes ]
546+ ) -> Self : ...
544547
545548class If (stmt ):
546549 if sys .version_info >= (3 , 10 ):
@@ -725,7 +728,7 @@ class Assert(stmt):
725728 def __init__ (self , test : expr , msg : expr | None = None , ** kwargs : Unpack [_Attributes ]) -> None : ...
726729
727730 if sys .version_info >= (3 , 14 ):
728- def __replace__ (self , * , test : expr , msg : expr | None , ** kwargs : Unpack [_Attributes ]) -> Self : ...
731+ def __replace__ (self , * , test : expr = ... , msg : expr | None = ... , ** kwargs : Unpack [_Attributes ]) -> Self : ...
729732
730733class Import (stmt ):
731734 if sys .version_info >= (3 , 10 ):
@@ -775,7 +778,7 @@ class Global(stmt):
775778 def __init__ (self , names : list [str ], ** kwargs : Unpack [_Attributes ]) -> None : ...
776779
777780 if sys .version_info >= (3 , 14 ):
778- def __replace__ (self , * , names : list [str ], ** kwargs : Unpack [_Attributes ]) -> Self : ...
781+ def __replace__ (self , * , names : list [str ] = ... , ** kwargs : Unpack [_Attributes ]) -> Self : ...
779782
780783class Nonlocal (stmt ):
781784 if sys .version_info >= (3 , 10 ):
0 commit comments