diff options
| author | Taku Fukada <naninunenor@gmail.com> | 2020-08-08 01:33:24 +0900 |
|---|---|---|
| committer | Taku Fukada <naninunenor@gmail.com> | 2020-08-08 01:33:24 +0900 |
| commit | 272d300fc8984434fa683caeb5b7bc52effe4dd9 (patch) | |
| tree | d2107ac81c5b2368a33831d18f04c12f80390712 | |
| parent | 354edd9431725c57d3ef4c0340bd7e69c908275c (diff) | |
Fix Read the Docs bulid failing
| -rw-r--r-- | .readthedocs.yml | 4 | ||||
| m--------- | extmod/ulab | 0 | ||||
| -rw-r--r-- | tools/extract_pyi.py | 5 |
3 files changed, 8 insertions, 1 deletions
diff --git a/.readthedocs.yml b/.readthedocs.yml index 4030bc317..2a0640782 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -8,6 +8,10 @@ version: 2 +submodules: + include: + - extmod/ulab + python: version: 3 install: diff --git a/extmod/ulab b/extmod/ulab -Subproject 11a7ecff6d76a02644ff23a734b792afaa615e4 +Subproject a2f27760c68a7222f4c53a7fb7bdfd898ce797e diff --git a/tools/extract_pyi.py b/tools/extract_pyi.py index 4d82e9e5d..651216e11 100644 --- a/tools/extract_pyi.py +++ b/tools/extract_pyi.py @@ -45,7 +45,10 @@ def find_stub_issues(tree): if isinstance(node.value, ast.Constant) and node.value.value == Ellipsis: yield ("WARN", f"Unnecessary Ellipsis assignment (= ...) on line {node.lineno}.") elif isinstance(node, ast.arguments): - for arg_node in (node.args + node.posonlyargs + node.kwonlyargs): + allargs = list(node.args + node.kwonlyargs) + if sys.version_info >= (3, 8): + allargs.extend(node.posonlyargs) + for arg_node in allargs: if not is_typed(arg_node.annotation) and (arg_node.arg != "self" and arg_node.arg != "cls"): yield ("WARN", f"Missing argument type: {arg_node.arg} on line {arg_node.lineno}") if node.vararg and not is_typed(node.vararg.annotation, allow_any=True): |
