Files
Dorod-Sky/skyvern/library/__init__.py
2025-11-11 09:54:37 -07:00

20 lines
564 B
Python

from typing import Any
# noinspection PyUnresolvedReferences
__all__ = ["Skyvern"]
def __getattr__(name: str) -> Any:
"""Lazily import Skyvern."""
if name == "Skyvern":
from skyvern.library.skyvern import Skyvern # noqa: PLC0415
globals()["Skyvern"] = Skyvern
return Skyvern
if name == "SkyvernSdk":
from skyvern.library.skyvern_sdk import SkyvernSdk # noqa: PLC0415
globals()["SkyvernSdk"] = SkyvernSdk
return SkyvernSdk
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")