sync
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
from dataclasses import dataclass
|
||||
from typing import Any
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class KeyDTO:
|
||||
key: str
|
||||
val: Any | None = None
|
||||
val: str = ""
|
||||
|
@@ -10,11 +10,11 @@ class Repository(Protocol):
|
||||
raise NotImplementedError
|
||||
|
||||
@abstractmethod
|
||||
def add_key(self, obj: KeyDTO) -> KeyDTO:
|
||||
def add_key(self, obj: KeyDTO) -> KeyDTO | None:
|
||||
raise NotImplementedError
|
||||
|
||||
@abstractmethod
|
||||
def put_key(self, obj: KeyDTO) -> KeyDTO:
|
||||
def put_key(self, obj: KeyDTO) -> KeyDTO | None:
|
||||
raise NotImplementedError
|
||||
|
||||
@abstractmethod
|
||||
|
Reference in New Issue
Block a user