[pve-devel] [PATCH v1 pve-esxi-import-tools 4/5] d/control: add python3-pyvmomi (>= 8) as build dependency

Max R. Carrara m.carrara at proxmox.com
Fri Jul 18 18:19:04 CEST 2025


... and don't ignore missing imports for pyVmomi in mypy.ini anymore.

python3-pyvmomi >= 8 is available only on trixie, which includes a
bunch of new type stubs that were previously missing. This means that
mypy no longer has to ignore missing imports in regards to pyVmomi.

mypy will therefore now complain when it can't find pyVmomi, so any
strange behavior regarding type checking of pyVmomi's types should
hopefully not happen anymore.

Note that pyVim is part of python3-pyvmomi, but still doesn't provide
any proper type stubs / hints that mypy can use, so we keep it ignored
until it does.

Signed-off-by: Max R. Carrara <m.carrara at proxmox.com>
---
 debian/control | 1 +
 mypy.ini       | 3 ---
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index ee74e15..d57b302 100644
--- a/debian/control
+++ b/debian/control
@@ -38,6 +38,7 @@ Build-Depends: cargo:native (>= 0.65.0~),
                librust-tokio-1+time-dev,
                libstd-rust-dev,
                mypy,
+               python3-pyvmomi (>= 8),
                rustc:native,
 Maintainer: Proxmox Support Team <support at proxmox.com>
 Standards-Version: 4.6.2
diff --git a/mypy.ini b/mypy.ini
index e6724c8..0387e66 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -1,8 +1,5 @@
 [mypy]
 
-[mypy-pyVmomi]
-ignore_missing_imports = True
-
 [mypy-pyVim.*]
 ignore_missing_imports = True
 
-- 
2.39.5





More information about the pve-devel mailing list