fix: update NoopSandboxStorage to return True for mount and unmount methods

This commit is contained in:
Novice 2026-03-17 16:50:55 +08:00
parent 40b0d7c898
commit 2e05068647
No known key found for this signature in database
GPG Key ID: A253106A7475AA3E

View File

@ -6,10 +6,10 @@ class NoopSandboxStorage(SandboxStorage):
"""A no-op storage implementation that does nothing on mount/unmount."""
def mount(self, sandbox: VirtualEnvironment) -> bool:
return False
return True
def unmount(self, sandbox: VirtualEnvironment) -> bool:
return False
return True
def exists(self) -> bool:
return False