Skip to content

Commit d5a1a22

Browse files
mbolivar-nordicgalak
authored andcommitted
python-devicetree: tox: fix mypy
Recent versions of mypy have learned that the yaml module has type stubs and the tool is now erroring out when it discovers we import yaml since the stubs are not involved. This is breaking CI on unrelated patches; fix it following the instructions here: https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports Signed-off-by: Martí Bolívar <[email protected]>
1 parent c77f8fa commit d5a1a22

File tree

1 file changed

+1
-0
lines changed
  • scripts/dts/python-devicetree

1 file changed

+1
-0
lines changed

scripts/dts/python-devicetree/tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ envlist=py3
55
deps =
66
setuptools-scm
77
pytest
8+
types-PyYAML
89
mypy
910
setenv =
1011
TOXTEMPDIR={envtmpdir}

0 commit comments

Comments
 (0)