Use lowercase type everywhere (#6853)

This commit is contained in:
Alex Waygood
2022-01-08 15:09:29 +00:00
committed by GitHub
parent f8501d33c7
commit a40d79a4e6
172 changed files with 728 additions and 761 deletions

View File

@@ -1,4 +1,4 @@
from typing import Any, Type
from typing import Any
from pyVmomi.vim import ManagedEntity
@@ -12,4 +12,4 @@ class ViewManager:
# but in practice it seems to be `list[Type[ManagedEntity]]`
# Source: https://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.view.ViewManager.html
@staticmethod
def CreateContainerView(container: ManagedEntity, type: list[Type[ManagedEntity]], recursive: bool) -> ContainerView: ...
def CreateContainerView(container: ManagedEntity, type: list[type[ManagedEntity]], recursive: bool) -> ContainerView: ...

View File

@@ -1,4 +1,4 @@
from typing import Any, Type
from typing import Any
from pyVmomi.vim import ManagedEntity
from pyVmomi.vim.view import ContainerView
@@ -6,17 +6,17 @@ from pyVmomi.vmodl import DynamicProperty
class PropertyCollector:
class PropertySpec:
def __init__(self, *, all: bool = ..., type: Type[ManagedEntity] = ..., pathSet: list[str] = ...) -> None: ...
def __init__(self, *, all: bool = ..., type: type[ManagedEntity] = ..., pathSet: list[str] = ...) -> None: ...
all: bool
type: Type[ManagedEntity]
type: type[ManagedEntity]
pathSet: list[str]
class TraversalSpec:
def __init__(
self, *, path: str = ..., skip: bool = ..., type: Type[ContainerView] = ..., **kwargs: Any # incomplete
self, *, path: str = ..., skip: bool = ..., type: type[ContainerView] = ..., **kwargs: Any # incomplete
) -> None: ...
path: str
skip: bool
type: Type[ContainerView]
type: type[ContainerView]
def __getattr__(self, name: str) -> Any: ... # incomplete
class RetrieveOptions:
def __init__(self, *, maxObjects: int) -> None: ...