vmware / vmware/pyvmomi

pylint and mypy support

Open
#862 6 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
2.3k
Forks
763
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by reproducing the pylint and mypy examples from the issue and determine whether the needed outcome is usage guidance or package-level typing support. Done means providing documented instructions or a defined implementation plan for the reported pyvmomi errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
developer-experience
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.