From 436616c66b595dc90a7d703b5853971f3b49c67e Mon Sep 17 00:00:00 2001 From: Chris Duf Date: Mon, 26 Dec 2022 20:22:46 +0100 Subject: [PATCH] python-devicetree: unpin types-PyYAML version This is essentially a revert of PR #46311 "python-devicetree: CI hotfix", assuming the original issue has been resolved, either upstream in types-PyYAML or in Zephyr itself. Tested with types-PyYAML 6.0.12.2 (current version at PyPI): $ python -m mypy --config-file=tox.ini --package=devicetree dtlib.py:962: note: By default the bodies of untyped functions [...] dtlib.py:964: note: By default the bodies of untyped functions [...] dtlib.py:965: note: By default the bodies of untyped functions [...] dtlib.py:967: note: By default the bodies of untyped functions [...] Success: no issues found in 4 source files The "notes" above are harmless (use of type hinting to define local variables while mypy won't "check the bodies of untyped functions"). References: - python-devicetree tox run fails (issue #46286) - python-devicetree: CI hotfix (PR #46311) - python-devicetree: CI hotfix (commit f6a6843) Signed-off-by: Chris Duf --- scripts/dts/python-devicetree/tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dts/python-devicetree/tox.ini b/scripts/dts/python-devicetree/tox.ini index b2612487ac7..54b08ec0949 100644 --- a/scripts/dts/python-devicetree/tox.ini +++ b/scripts/dts/python-devicetree/tox.ini @@ -5,7 +5,7 @@ envlist=py3 deps = setuptools-scm pytest - types-PyYAML==6.0.7 + types-PyYAML mypy setenv = TOXTEMPDIR={envtmpdir}