zjowowen's picture
init space
079c32c
raw
history blame
326 Bytes
from abc import ABC, abstractmethod
from typing import Any
class Storage(ABC):
def __init__(self, path: str) -> None:
self.path = path
@abstractmethod
def save(self, data: Any) -> None:
raise NotImplementedError
@abstractmethod
def load(self) -> Any:
raise NotImplementedError