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