File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99version : 2
1010
11+ submodules :
12+ include :
13+ - extmod/ulab
14+
1115python :
1216 version : 3
1317 install :
Original file line number Diff line number Diff line change @@ -45,7 +45,10 @@ def find_stub_issues(tree):
4545 if isinstance (node .value , ast .Constant ) and node .value .value == Ellipsis :
4646 yield ("WARN" , f"Unnecessary Ellipsis assignment (= ...) on line { node .lineno } ." )
4747 elif isinstance (node , ast .arguments ):
48- for arg_node in (node .args + node .posonlyargs + node .kwonlyargs ):
48+ allargs = list (node .args + node .kwonlyargs )
49+ if sys .version_info >= (3 , 8 ):
50+ allargs .extend (node .posonlyargs )
51+ for arg_node in allargs :
4952 if not is_typed (arg_node .annotation ) and (arg_node .arg != "self" and arg_node .arg != "cls" ):
5053 yield ("WARN" , f"Missing argument type: { arg_node .arg } on line { arg_node .lineno } " )
5154 if node .vararg and not is_typed (node .vararg .annotation , allow_any = True ):
You can’t perform that action at this time.
0 commit comments