pyvmomi
pyvmomi copied to clipboard
Type stubs are not compatible with Python type checkers like mypy
Is your feature request related to a problem? Please describe.
The type coverage of modules in pyVmomi
is now pretty good, but pyVim
modules are still missing type stubs. FWIW both packages are part of this repository and shipped wth the pyvmomi
PyPI package.
Right now mypy prints following errors when I use it:
error: Skipping analyzing "pyVim.connect": module is installed, but missing library stubs or py.typed marker [import-untyped] error: Skipping analyzing "pyVim.task": module is installed, but missing library stubs or py.typed marker [import-untyped]
Describe the solution you'd like
Please add type hints and py.typed
marker file.
Describe alternatives you've considered
No response
Additional context
No response