-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyvmomi==8.0.3.0.1 errors with mypy #1080
Comments
another incorrect typing stub:
|
Some more issues:
Something relating to
More examples:
There seems to be an issue with the underlying generation issue. Those are some of the few examples. |
Here's another: There are dozens of methods annotated with Anything annotated with Just from a glance at the following line from CreateManagedType("vim.view.View", "View", "vmodl.ManagedObject", "vim.version.version2", None, [("destroy", "DestroyView", "vim.version.version2", (), (0, "void", "void"), "System.View", None)]) I will hazard a guess that def a_function() -> None:
pass
# >>> result = a_function()
# >>> print(result)
# None Oddly enough, I found this snippet in _wsdlTypeMap = {
# Note: xsd has no void type. This is a hack from before. Can be removed?
(XMLNS_XSD, 'void'):
NoneType,
... If this is what I think it is, it looks like the type stubs should have |
Describe the bug
Run
mypy
on code using pyvmomi, mypy will throw an error:Reproduction steps
pip install pyvmomi==8.0.3.0.1 types-pyvmomi==8.0.0.6 mypy==1.10.1
Call mypy on code using pyvmomi:
mypy
To fix:
pip install pyvmomi==8.0.2.0.1
Expected behavior
No errors.
Additional context
Relates to #862 and #1048.
The text was updated successfully, but these errors were encountered: