Skip to content
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

Syntax error in vim/__init__pyi #1015

Closed
IvarVirusiim opened this issue May 8, 2023 · 1 comment
Closed

Syntax error in vim/__init__pyi #1015

IvarVirusiim opened this issue May 8, 2023 · 1 comment
Assignees
Labels

Comments

@IvarVirusiim
Copy link

Describe the bug

pyvmomi = "8.0.1.0"

File: pyVmomi/vim/__init__.pyi:1117

class HostSystem(ManagedEntity):
...

    class StandbyMode(Enum):
        entering = "entering"
        exiting = "exiting"
        in = "in" # <--- "in" is a reserved keyword
        none = "none"

Reproduction steps

  1. Install version "8.0.1.0"
  2. Import in file: from pyVmomi import vim
  3. Run mypy to check for type hints

Expected behavior

No syntax error detected

Additional context

No response

@intgr
Copy link

intgr commented May 8, 2023

Also pyVmomi/vim/event/__init__.pyi lines 75 and 155 contain def from(self) -> str: which is invalid syntax. from is a reserved keyword in Python.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants