Files
optuna-dashboard/optuna_dashboard/artifact/protocol.py
T

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:
...