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

Based on: 8875340db4

Signed-off-by: Michael Zimmermann <michael.zimmermann@grandcentrix.net>
This commit is contained in:
Martí Bolívar 2021-06-23 07:03:26 +02:00 committed by Marti Bolivar
parent 121dfd8ac4
commit 21a478e3c8
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ deps =
setuptools-scm
pytest
pytest-cov
types-PyYAML
flake8
mypy
setenv =