13 lines
308 B
Python
13 lines
308 B
Python
from abc import ABC, abstractmethod
|
|
from typing import Generic, TypeVar
|
|
|
|
T = TypeVar("T")
|
|
|
|
class CredentialStore(ABC, Generic[T]):
|
|
@abstractmethod
|
|
def load(self) -> T | None: ...
|
|
@abstractmethod
|
|
def save(self, credentials: T) -> None: ...
|
|
@abstractmethod
|
|
def clear(self) -> None: ...
|