[PATCH v3 38/63] do-not-merge

John Snow posted 63 patches 3 weeks, 1 day ago
[PATCH v3 38/63] do-not-merge
Posted by John Snow 3 weeks, 1 day 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 7534ab0df98..cbad92c15b4 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=79 $files qapidoc.py
     isort -c $files qapidoc.py
     black --line-length 79 --check $files qapidoc.py
-- 
2.48.1