|
|
@@ -1,15 +1,10 @@
|
|
|
-from typing import TYPE_CHECKING, Type
|
|
|
-
|
|
|
from .docker.local_box import LocalBox
|
|
|
from .docker.ssh_box import DockerSSHBox
|
|
|
from .e2b.sandbox import E2BBox
|
|
|
from .sandbox import Sandbox
|
|
|
|
|
|
-if TYPE_CHECKING:
|
|
|
- from .runtime import Runtime
|
|
|
-
|
|
|
|
|
|
-def get_runtime_cls(name: str) -> Type['Runtime']:
|
|
|
+def get_runtime_cls(name: str):
|
|
|
# Local imports to avoid circular imports
|
|
|
if name == 'server':
|
|
|
from .server.runtime import ServerRuntime
|