File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
version : 2
10
10
11
+ submodules :
12
+ include :
13
+ - extmod/ulab
14
+
11
15
python :
12
16
version : 3
13
17
install :
Original file line number Diff line number Diff line change @@ -45,7 +45,10 @@ def find_stub_issues(tree):
45
45
if isinstance (node .value , ast .Constant ) and node .value .value == Ellipsis :
46
46
yield ("WARN" , f"Unnecessary Ellipsis assignment (= ...) on line { node .lineno } ." )
47
47
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 :
49
52
if not is_typed (arg_node .annotation ) and (arg_node .arg != "self" and arg_node .arg != "cls" ):
50
53
yield ("WARN" , f"Missing argument type: { arg_node .arg } on line { arg_node .lineno } " )
51
54
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