From 8b49f892ce670be22de2ae1372a3135ac5fe6ac8 Mon Sep 17 00:00:00 2001 From: hajdul88 <52442977+hajdul88@users.noreply.github.com> Date: Thu, 15 Jan 2026 11:53:54 +0100 Subject: [PATCH] ruff fix --- cognee/infrastructure/databases/cache/cache_db_interface.py | 4 +++- cognee/infrastructure/databases/cache/get_cache_engine.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cognee/infrastructure/databases/cache/cache_db_interface.py b/cognee/infrastructure/databases/cache/cache_db_interface.py index 1e7949554..c93cf652e 100644 --- a/cognee/infrastructure/databases/cache/cache_db_interface.py +++ b/cognee/infrastructure/databases/cache/cache_db_interface.py @@ -8,7 +8,9 @@ class CacheDBInterface(ABC): Provides a common interface for lock acquisition, release, and context-managed locking. """ - def __init__(self, host: str, port: int, lock_key: str = "default_lock", log_key: str = "usage_logs"): + def __init__( + self, host: str, port: int, lock_key: str = "default_lock", log_key: str = "usage_logs" + ): self.host = host self.port = port self.lock_key = lock_key diff --git a/cognee/infrastructure/databases/cache/get_cache_engine.py b/cognee/infrastructure/databases/cache/get_cache_engine.py index 62dff7465..85a59bfde 100644 --- a/cognee/infrastructure/databases/cache/get_cache_engine.py +++ b/cognee/infrastructure/databases/cache/get_cache_engine.py @@ -63,7 +63,9 @@ def create_cache_engine( return None -def get_cache_engine(lock_key: Optional[str] = None, log_key: Optional[str] = None) -> CacheDBInterface: +def get_cache_engine( + lock_key: Optional[str] = None, log_key: Optional[str] = None +) -> CacheDBInterface: """ Returns a cache adapter instance using current context configuration. """