You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
There seem to be a number of issues with type validation in Python say with mypy. Optional[] does not seem to be use at all in declarations as noted in #1056
I am changing the subject and will close related issues as duplicates of this one.
Type stubs need to be compatible with Python type checkers.
karaatanassov
changed the title
Type stubs: Missing types in pyVim package
Type stubs are not compatible with Python type checkers like mypy
Dec 29, 2023
Is your feature request related to a problem? Please describe.
The type coverage of modules in
pyVmomi
is now pretty good, butpyVim
modules are still missing type stubs. FWIW both packages are part of this repository and shipped wth thepyvmomi
PyPI package.Right now mypy prints following errors when I use it:
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
The text was updated successfully, but these errors were encountered: