[PATCH 36/57] do-not-merge

John Snow posted 57 patches 4 weeks ago
There is a newer version of this series
[PATCH 36/57] do-not-merge
Posted by John Snow 4 weeks ago
Add strict typing to qapidoc.py for the remainder of this series.

Signed-off-by: John Snow <jsnow@redhat.com>
---
 scripts/qapi-lint.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/qapi-lint.sh b/scripts/qapi-lint.sh
index 0e3ff002b69..dd3e6eb84c5 100755
--- a/scripts/qapi-lint.sh
+++ b/scripts/qapi-lint.sh
@@ -35,7 +35,7 @@ if [[ -f ../docs/sphinx/qapi_domain.py ]]; then
     pushd ../docs/sphinx
 
     set -x
-    mypy --strict $files
+    PYTHONPATH=../../scripts/ mypy --follow-untyped-imports --strict $files qapidoc.py
     flake8 --max-line-length=80 $files qapidoc.py
     isort -c $files qapidoc.py
     black --line-length 80 --check $files qapidoc.py
-- 
2.48.1