mirror of
https://github.com/malmeloo/FindMy.py.git
synced 2026-04-17 17:53:53 +02:00
fix: linter warnings
This commit is contained in:
@@ -5,7 +5,7 @@ default_install_hook_types:
|
||||
- post-rewrite
|
||||
repos:
|
||||
- repo: https://github.com/astral-sh/uv-pre-commit
|
||||
rev: 0.8.4
|
||||
rev: 0.8.17
|
||||
hooks:
|
||||
- id: uv-sync
|
||||
args: ["--all-groups"]
|
||||
|
||||
@@ -48,7 +48,7 @@ class Closable(ABC):
|
||||
_T = TypeVar("_T", bound=Mapping)
|
||||
|
||||
|
||||
class Serializable(Generic[_T], ABC):
|
||||
class Serializable(ABC, Generic[_T]):
|
||||
"""ABC for serializable classes."""
|
||||
|
||||
@abstractmethod
|
||||
|
||||
@@ -102,7 +102,7 @@ class MixedSessionManager(_BaseSessionManager[Union[Serializable, Closable]]):
|
||||
self._add(obj, path)
|
||||
|
||||
|
||||
class UniformSessionManager(Generic[_SC], _BaseSessionManager[_SC]):
|
||||
class UniformSessionManager(_BaseSessionManager[_SC], Generic[_SC]):
|
||||
"""Only allows a single type of Serializable object."""
|
||||
|
||||
def __init__(self, obj_type: type[_SC]) -> None:
|
||||
|
||||
Reference in New Issue
Block a user