Browse Source

Merge pull request #1854 from jspricke/fix_storage_interface

Fix acquire_lock interface signature
Peter Bieringer 6 months ago
parent
commit
f06911a3a4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      radicale/storage/__init__.py

+ 1 - 1
radicale/storage/__init__.py

@@ -355,7 +355,7 @@ class BaseStorage:
         raise NotImplementedError
 
     @types.contextmanager
-    def acquire_lock(self, mode: str, user: str = "") -> Iterator[None]:
+    def acquire_lock(self, mode: str, user: str = "", *args, **kwargs) -> Iterator[None]:
         """Set a context manager to lock the whole storage.
 
         ``mode`` must either be "r" for shared access or "w" for exclusive