diff --git a/pyrightconfig.stricter.json b/pyrightconfig.stricter.json index 2870a7b34..f8a7e4bda 100644 --- a/pyrightconfig.stricter.json +++ b/pyrightconfig.stricter.json @@ -73,7 +73,6 @@ "stubs/PyMySQL", "stubs/python-dateutil", "stubs/python-jose", - "stubs/pyvmomi", "stubs/pywin32", "stubs/PyYAML", "stubs/redis", diff --git a/stubs/pyvmomi/pyVmomi/vim/__init__.pyi b/stubs/pyvmomi/pyVmomi/vim/__init__.pyi index f31d6fef6..4a243eb06 100644 --- a/stubs/pyvmomi/pyVmomi/vim/__init__.pyi +++ b/stubs/pyvmomi/pyVmomi/vim/__init__.pyi @@ -36,7 +36,7 @@ class PerformanceManager: class MetricId: counterId: int instance: str - def __init__(self, counterId: int, instance: str): ... + def __init__(self, counterId: int, instance: str) -> None: ... class PerfCounterInfo: key: int diff --git a/stubs/pyvmomi/pyVmomi/vim/event.pyi b/stubs/pyvmomi/pyVmomi/vim/event.pyi index 26f3e067d..92bb9396a 100644 --- a/stubs/pyvmomi/pyVmomi/vim/event.pyi +++ b/stubs/pyvmomi/pyVmomi/vim/event.pyi @@ -8,7 +8,7 @@ class Event: class EventFilterSpec: class ByTime: - def __init__(self, beginTime: datetime): ... + def __init__(self, beginTime: datetime) -> None: ... time: EventFilterSpec.ByTime class EventManager: diff --git a/stubs/pyvmomi/pyVmomi/vmodl/query.pyi b/stubs/pyvmomi/pyVmomi/vmodl/query.pyi index a08179837..d9c464c58 100644 --- a/stubs/pyvmomi/pyVmomi/vmodl/query.pyi +++ b/stubs/pyvmomi/pyVmomi/vmodl/query.pyi @@ -13,7 +13,9 @@ class PropertyCollector: pathSet: list[str] class TraversalSpec: - def __init__(self, *, path: str = ..., skip: bool = ..., type: type[ContainerView] = ..., **kwargs) -> None: ... + def __init__( + self, *, path: str = ..., skip: bool = ..., type: type[ContainerView] = ..., **kwargs: Incomplete + ) -> None: ... path: str skip: bool type: type[ContainerView] @@ -37,14 +39,14 @@ class PropertyCollector: *, propSet: list[PropertyCollector.PropertySpec] = ..., objectSet: list[PropertyCollector.ObjectSpec] = ..., - **kwargs, + **kwargs: Incomplete, ) -> None: ... propSet: list[PropertyCollector.PropertySpec] objectSet: list[PropertyCollector.ObjectSpec] def __getattr__(self, name: str) -> Incomplete: ... class ObjectContent: - def __init__(self, *, obj: ManagedEntity = ..., propSet: list[DynamicProperty] = ..., **kwargs) -> None: ... + def __init__(self, *, obj: ManagedEntity = ..., propSet: list[DynamicProperty] = ..., **kwargs: Incomplete) -> None: ... obj: ManagedEntity propSet: list[DynamicProperty] def __getattr__(self, name: str) -> Incomplete: ...