INNER CODE UNIT · Python

BetaNamespace

google-antigravity/antigravity-sdk-python · google/antigravity/beta/__init__.py:128

class BetaNamespace:
  """Descriptor providing the `.beta` attribute on SDK classes and instances."""

  is_beta = staticmethod(is_beta)

  if TYPE_CHECKING:

    def __getattr__(self, name: str) -> Any:
      ...

  def __call__(self, obj_or_name: Any = None, /) -> Any:
    """Allows `beta` in class scope to act as the `@beta` decorator."""
    return beta(obj_or_name)

  def __get__(self, instance: Any, owner: type[Any] | None = None) -> Any:
    if owner is None:
      owner = type(instance)
    if instance is None:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…