-
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
pylint and mypy support #862
Comments
Is it possible to use the |
For a complicated library like this, type hints would improve the developer experience IMMENSELY. It seems that all the type information is already available in documentation, could you not leverage this information in your build process and automatically generate type stubs? FYI: PEP 561 covers how to distribute type information. |
I'm going to try and have a crack at this one... :D |
@zbennett10 Hi, did you get anywhere with your attempt? |
There seems to have been some initial work in this direction with 81d0e9f. |
We use pylint and mypy to ensure high quality in our code, unfortunately both tools are confused about the pyvmomi package.
For example
from pyVmomi import vim, vmodl
throws a 'no-name-in-module' error with pylint and we have to silence it.With mypy, and IDEs that support type annotation, we get errors such as
vmodl.query.PropertyCollector? has no attribute "CreateFilter"
.Are there instructions or plans on making pyvmomi work better with pylint and mypy?
The text was updated successfully, but these errors were encountered: