]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr: attempt to fix mypy importing from python-common 63313/head
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 18 Sep 2024 03:21:31 +0000 (20:21 -0700)
committerNizamudeen A <nia@redhat.com>
Fri, 16 May 2025 04:27:17 +0000 (09:57 +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 8c30a9632fca6f911a644c7b5c2f1c7725d4cd19..117a9cf0c9f98f910b6993e138d34d3d47c59779 100644 (file)
@@ -67,7 +67,7 @@ commands =
 
 [testenv:mypy]
 setenv =
-    MYPYPATH = {toxinidir}/..
+    MYPYPATH = {toxinidir}/..:{toxinidir}/../../python-common
 passenv =
     MYPYPATH
 basepython = python3