fix: linter warnings

This commit is contained in:
Mike A.
2025-09-16 21:59:46 +02:00
parent 0976818c3a
commit 8692eccbef
3 changed files with 3 additions and 3 deletions

View File

@@ -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"]

View File

@@ -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

View File

@@ -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: