]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr: attempt to fix mypy importing from python-common 63187/head
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 18 Sep 2024 03:21:31 +0000 (20:21 -0700)
committerNizamudeen A <nia@redhat.com>
Mon, 12 May 2025 11:00:14 +0000 (16:30 +0530)
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>
(cherry picked from commit d1c942a98499560bb15c50db4498f12f4916866f)

src/pybind/mgr/tox.ini

index 6c51a639714dfbdf6151da164264cf60856b40da..3165673cdbcd9014af6da4b1293857cf18a0d495 100644 (file)
@@ -67,7 +67,7 @@ commands =
 
 [testenv:{,py37-,py38-,py39-,py310-}mypy]
 setenv =
-    MYPYPATH = {toxinidir}/..
+    MYPYPATH = {toxinidir}/..:{toxinidir}/../../python-common
 passenv =
     MYPYPATH
 deps =