1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-28 19:40:54 +00:00

Fix acquire_lock interface signature

See multifilesystem/lock.py and different calls.
This commit is contained in:
Jochen Sprickerhof 2025-08-23 20:59:37 +02:00
parent 9d5772901d
commit 5f7f410310
No known key found for this signature in database
GPG key ID: 5BFFDCC258E69433

View file

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