File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -462,20 +462,18 @@ def visit_overloaded_func_def(self, o: OverloadedFuncDef) -> None:
462
462
def get_default_function_sig (self , func_def : FuncDef , ctx : FunctionContext ) -> FunctionSig :
463
463
args = self ._get_func_args (func_def , ctx )
464
464
retname = self ._get_func_return (func_def , ctx )
465
- # if args and all(a.type is None for a in args) and retname is None:
466
- # return None
467
465
return FunctionSig (func_def .name , args , retname )
468
466
469
- def _get_func_args (self , func_def : FuncDef , ctx : FunctionContext ) -> list [ArgSig ]:
467
+ def _get_func_args (self , o : FuncDef , ctx : FunctionContext ) -> list [ArgSig ]:
470
468
args : list [ArgSig ] = []
471
469
472
- for i , arg_ in enumerate (func_def .arguments ):
470
+ for i , arg_ in enumerate (o .arguments ):
473
471
var = arg_ .variable
474
472
kind = arg_ .kind
475
473
name = var .name
476
474
annotated_type = (
477
- func_def .unanalyzed_type .arg_types [i ]
478
- if isinstance (func_def .unanalyzed_type , CallableType )
475
+ o .unanalyzed_type .arg_types [i ]
476
+ if isinstance (o .unanalyzed_type , CallableType )
479
477
else None
480
478
)
481
479
# I think the name check is incorrect: there are libraries which
You can’t perform that action at this time.
0 commit comments