Some checks failed
ci/woodpecker/push/check Pipeline was successful
Publish to PyPI / Upload release to PyPI (push) Has been cancelled
23 lines
562 B
Python
23 lines
562 B
Python
import warnings as _warnings
|
|
|
|
from wrenn.capsule import Capsule # noqa: F401
|
|
from wrenn.commands import ( # noqa: F401
|
|
StreamErrorEvent,
|
|
StreamEvent,
|
|
StreamExitEvent,
|
|
StreamStartEvent,
|
|
StreamStderrEvent,
|
|
StreamStdoutEvent,
|
|
)
|
|
|
|
|
|
def __getattr__(name: str) -> type:
|
|
if name == "Sandbox":
|
|
_warnings.warn(
|
|
"'Sandbox' is deprecated, use 'Capsule' instead",
|
|
FutureWarning,
|
|
stacklevel=2,
|
|
)
|
|
return Capsule
|
|
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|