Skip to content

Commit 272d300

Browse files
committed
Fix Read the Docs bulid failing
1 parent 354edd9 commit 272d300

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.readthedocs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
version: 2
1010

11+
submodules:
12+
include:
13+
- extmod/ulab
14+
1115
python:
1216
version: 3
1317
install:

tools/extract_pyi.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)