From: John Mulligan Date: Wed, 18 Sep 2024 03:21:31 +0000 (-0700) Subject: pybind/mgr: attempt to fix mypy importing from python-common X-Git-Tag: testing/wip-vshankar-testing-20250603.055014-reef-debug~61^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=afa697a881db305648319f03239f13fca63bbc48;p=ceph-ci.git pybind/mgr: attempt to fix mypy importing from python-common 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 (cherry picked from commit d1c942a98499560bb15c50db4498f12f4916866f) --- diff --git a/src/pybind/mgr/tox.ini b/src/pybind/mgr/tox.ini index 8c30a9632fc..117a9cf0c9f 100644 --- a/src/pybind/mgr/tox.ini +++ b/src/pybind/mgr/tox.ini @@ -67,7 +67,7 @@ commands = [testenv:mypy] setenv = - MYPYPATH = {toxinidir}/.. + MYPYPATH = {toxinidir}/..:{toxinidir}/../../python-common passenv = MYPYPATH basepython = python3