Skip to content

Commit

Permalink
add mixin to base class
Browse files Browse the repository at this point in the history
  • Loading branch information
xingyaoww committed Apr 21, 2024
1 parent d3c829c commit 9481c7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions opendevin/sandbox/docker/ssh_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from opendevin.sandbox.sandbox import Sandbox
from opendevin.sandbox.process import Process
from opendevin.sandbox.docker.process import DockerProcess
from opendevin.sandbox.plugins.mixin import PluginMixin
from opendevin.sandbox.plugins.jupyter import JupyterRequirement
from opendevin.schema import ConfigType
from opendevin.utils import find_available_tcp_port
Expand Down Expand Up @@ -45,7 +44,7 @@
USER_ID = os.getuid()


class DockerSSHBox(Sandbox, PluginMixin):
class DockerSSHBox(Sandbox):
instance_id: str
container_image: str
container_name_prefix = 'opendevin-sandbox-'
Expand Down
3 changes: 2 additions & 1 deletion opendevin/sandbox/sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
from typing import Tuple

from opendevin.sandbox.process import Process
from opendevin.sandbox.plugins.mixin import PluginMixin


class Sandbox(ABC):
class Sandbox(ABC, PluginMixin):
background_commands: Dict[int, Process] = {}

@abstractmethod
Expand Down

0 comments on commit 9481c7b

Please sign in to comment.