@@ -174,6 +174,7 @@ class FunctionDef(stmt):
174
174
returns : expr | None = ...,
175
175
type_comment : str | None = ...,
176
176
type_params : list [type_param ] = ...,
177
+ ** kwargs : Unpack [_Attributes ],
177
178
) -> Self : ...
178
179
179
180
class AsyncFunctionDef (stmt ):
@@ -245,11 +246,11 @@ class AsyncFunctionDef(stmt):
245
246
* ,
246
247
name : str = ...,
247
248
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 ] = ... ,
253
254
) -> Self : ...
254
255
255
256
class ClassDef (stmt ):
@@ -301,12 +302,12 @@ class ClassDef(stmt):
301
302
def __replace__ (
302
303
self ,
303
304
* ,
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 ] = ... ,
310
311
** kwargs : Unpack [_Attributes ],
311
312
) -> Self : ...
312
313
@@ -377,7 +378,7 @@ if sys.version_info >= (3, 12):
377
378
) -> None : ...
378
379
379
380
if sys .version_info >= (3 , 14 ):
380
- def __replace__ (
381
+ def __replace__ ( # type: ignore[override]
381
382
self ,
382
383
* ,
383
384
name : Name = ...,
@@ -540,7 +541,9 @@ class While(stmt):
540
541
def __init__ (self , test : expr , body : list [stmt ], orelse : list [stmt ], ** kwargs : Unpack [_Attributes ]) -> None : ...
541
542
542
543
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 : ...
544
547
545
548
class If (stmt ):
546
549
if sys .version_info >= (3 , 10 ):
@@ -725,7 +728,7 @@ class Assert(stmt):
725
728
def __init__ (self , test : expr , msg : expr | None = None , ** kwargs : Unpack [_Attributes ]) -> None : ...
726
729
727
730
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 : ...
729
732
730
733
class Import (stmt ):
731
734
if sys .version_info >= (3 , 10 ):
@@ -775,7 +778,7 @@ class Global(stmt):
775
778
def __init__ (self , names : list [str ], ** kwargs : Unpack [_Attributes ]) -> None : ...
776
779
777
780
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 : ...
779
782
780
783
class Nonlocal (stmt ):
781
784
if sys .version_info >= (3 , 10 ):
0 commit comments