@@ -164,15 +164,15 @@ class FunctionDef(stmt):
164164 ) -> None : ...
165165
166166 if sys .version_info >= (3 , 14 ):
167- def __replace__ ( # type: ignore[override]
167+ def __replace__ (
168168 self ,
169169 * ,
170170 name : str = ...,
171171 args : arguments = ...,
172172 body : list [stmt ] = ...,
173173 decorator_list : list [expr ] = ...,
174- returns : expr | None ,
175- type_comment : str | None ,
174+ returns : expr | None = ... ,
175+ type_comment : str | None = ... ,
176176 type_params : list [type_param ] = ...,
177177 ** kwargs : Unpack [_Attributes ],
178178 ) -> Self : ...
@@ -241,15 +241,15 @@ class AsyncFunctionDef(stmt):
241241 ) -> None : ...
242242
243243 if sys .version_info >= (3 , 14 ):
244- def __replace__ ( # type: ignore[override]
244+ def __replace__ (
245245 self ,
246246 * ,
247247 name : str = ...,
248248 args : arguments = ...,
249249 body : list [stmt ] = ...,
250250 decorator_list : list [expr ] = ...,
251- returns : expr | None ,
252- type_comment : str | None ,
251+ returns : expr | None = ... ,
252+ type_comment : str | None = ... ,
253253 type_params : list [type_param ] = ...,
254254 ) -> Self : ...
255255
@@ -728,7 +728,7 @@ class Assert(stmt):
728728 def __init__ (self , test : expr , msg : expr | None = None , ** kwargs : Unpack [_Attributes ]) -> None : ...
729729
730730 if sys .version_info >= (3 , 14 ):
731- def __replace__ (self , * , test : expr = ..., msg : expr | None , ** kwargs : Unpack [_Attributes ]) -> Self : ... # type: ignore[override]
731+ def __replace__ (self , * , test : expr = ..., msg : expr | None = ... , ** kwargs : Unpack [_Attributes ]) -> Self : ...
732732
733733class Import (stmt ):
734734 if sys .version_info >= (3 , 10 ):
0 commit comments