standardize packaging, tooling, docs, CI, and licensing
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
from typing import Optional, TypeVar, Callable, Any
|
||||
from collections.abc import Callable
|
||||
from typing import Any, TypeVar
|
||||
|
||||
from .store import CredentialStore
|
||||
|
||||
T = TypeVar("T")
|
||||
@@ -8,8 +10,15 @@ class RedisCredentialStore(CredentialStore[T]):
|
||||
key: str
|
||||
serialize: Callable[[T], bytes]
|
||||
deserialize: Callable[[bytes], T]
|
||||
ttl_seconds: Optional[int]
|
||||
def __init__(self, redis_client: Any, key: str, serialize: Callable[[T], bytes], deserialize: Callable[[bytes], T], ttl_seconds: Optional[int] = ...) -> None: ...
|
||||
def load(self) -> Optional[T]: ...
|
||||
ttl_seconds: int | None
|
||||
def __init__(
|
||||
self,
|
||||
redis_client: Any,
|
||||
key: str,
|
||||
serialize: Callable[[T], bytes],
|
||||
deserialize: Callable[[bytes], T],
|
||||
ttl_seconds: int | None = ...,
|
||||
) -> None: ...
|
||||
def load(self) -> T | None: ...
|
||||
def save(self, credentials: T) -> None: ...
|
||||
def clear(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user