mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-25 13:50:21 +08:00
14 lines
298 B
Python
14 lines
298 B
Python
from typing import BinaryIO
|
|
from typing import Protocol
|
|
|
|
|
|
class ArtifactBackend(Protocol):
|
|
def open(self, artifact_id: str) -> BinaryIO:
|
|
...
|
|
|
|
def write(self, artifact_id: str, content_body: BinaryIO) -> None:
|
|
...
|
|
|
|
def remove(self, artifact_id: str) -> None:
|
|
...
|