Fix acquire_lock interface signature
See multifilesystem/lock.py and different calls.
This commit is contained in:
@@ -355,7 +355,7 @@ class BaseStorage:
|
|||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
@types.contextmanager
|
@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.
|
"""Set a context manager to lock the whole storage.
|
||||||
|
|
||||||
``mode`` must either be "r" for shared access or "w" for exclusive
|
``mode`` must either be "r" for shared access or "w" for exclusive
|
||||||
|
|||||||
Reference in New Issue
Block a user