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 <chris@openmarl.org>
This commit is contained in:
Chris Duf 2022-12-26 20:22:46 +01:00 committed by Fabio Baltieri
commit 436616c66b

View file

@ -5,7 +5,7 @@ envlist=py3
deps = deps =
setuptools-scm setuptools-scm
pytest pytest
types-PyYAML==6.0.7 types-PyYAML
mypy mypy
setenv = setenv =
TOXTEMPDIR={envtmpdir} TOXTEMPDIR={envtmpdir}