from __future__ import annotations
from typing import List, TYPE_CHECKING
if TYPE_CHECKING:
from typing_extensions import Protocol
else:
Protocol = object
[docs]class ServicePartialT(Protocol):
"""Type for ServicePartial Class."""
[docs] def support_service(self, *service: str) -> bool:
"""
Gets if instance supports a service.
Args:
*service (str): Variable length argument list of UNO namespace strings such as ``com.sun.star.configuration.GroupAccess``
Returns:
bool: ``True`` if instance supports any passed in service; Otherwise, ``False``
"""
...
[docs] def get_services(self) -> List[str]:
"""
Gets service names for the instance.
Returns:
List[str]: service names
"""
...