INNER CODE UNIT · Python
__dir__
google-antigravity/antigravity-sdk-python · google/antigravity/beta/__init__.py:114
def __dir__(self) -> list[str]:
names = set(_collect_beta_members(self._owner).keys())
names.update(k for k in self.__dict__ if not k.startswith("_"))
return sorted(names)
def __repr__(self) -> str:
target = (
f"instance of {self._owner.__name__}"
if self._instance is not None
else self._owner.__name__
)
return f"<BetaNamespace for {target}>"
class BetaNamespace:
"""Descriptor providing the `.beta` attribute on SDK classes and instances."""
is_beta = staticmethod(is_beta)