From c6ad6d5258196242d017e6f90d5084c371142051 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Tue, 17 Sep 2024 20:21:31 -0700 Subject: [PATCH] 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) --- src/pybind/mgr/tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/tox.ini b/src/pybind/mgr/tox.ini index 6c51a639714df..3165673cdbcd9 100644 --- a/src/pybind/mgr/tox.ini +++ b/src/pybind/mgr/tox.ini @@ -67,7 +67,7 @@ commands = [testenv:{,py37-,py38-,py39-,py310-}mypy] setenv = - MYPYPATH = {toxinidir}/.. + MYPYPATH = {toxinidir}/..:{toxinidir}/../../python-common passenv = MYPYPATH deps = -- 2.39.5