]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr: attempt to fix mypy importing from python-common 59845/head
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 18 Sep 2024 03:21:31 +0000 (20:21 -0700)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 18 Sep 2024 03:21:31 +0000 (20:21 -0700)
For some reason mypy on python 3.12 can no longer automatically find
imports from python-common. Help it out by expanding the MYPYPATH
value for the tox.ini.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/tox.ini

index 4190bcf44db7939ea56c1ced87f9633e07e24434..956cd7896aabb1abffa05a1cd9a854898ac99810 100644 (file)
@@ -69,7 +69,7 @@ commands =
 
 [testenv:{,py37-,py38-,py39-,py310-}mypy]
 setenv =
-    MYPYPATH = {toxinidir}/..
+    MYPYPATH = {toxinidir}/..:{toxinidir}/../../python-common
 passenv =
     MYPYPATH
 deps =