From d6af577221c96c49704b10373dc5beb423416597 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Sat, 20 Jan 2024 11:30:40 -0500 Subject: [PATCH] qa: disable namespace packages on mypy runs Namespace package support confuses mypy in regards to the pybind/{cephfs,rados,rbd}, etc when using mypy >= 0.990. Turning them off seems to not be a problem for the ceph code. Signed-off-by: John Mulligan --- qa/tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/tox.ini b/qa/tox.ini index 234873c433861..af4c699919909 100644 --- a/qa/tox.ini +++ b/qa/tox.ini @@ -26,7 +26,7 @@ deps = types-cryptography types-python-dateutil -c{toxinidir}/../src/mypy-constrains.txt -commands = mypy {posargs:.} +commands = mypy --no-namespace-packages {posargs:.} [testenv:py3] basepython = python3 -- 2.39.5