from typing import Any, Type from pyVmomi.vim import ManagedEntity def __getattr__(name: str) -> Any: ... # incomplete class ContainerView: def Destroy(self) -> None: ... class ViewManager: # Doc says the `type` parameter of CreateContainerView is a `list[str]`, # 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: ...