mirror of
https://github.com/samschott/maestral.git
synced 2024-09-22 03:18:33 +03:00
class-level decorators are no longer static
This commit is contained in:
parent
bc14064b8f
commit
29382c7adc
@ -159,8 +159,7 @@ class DropboxClient:
|
|||||||
self._is_team_space = self._state.get("account", "path_root_type") == "team"
|
self._is_team_space = self._state.get("account", "path_root_type") == "team"
|
||||||
self._lock = threading.Lock()
|
self._lock = threading.Lock()
|
||||||
|
|
||||||
@staticmethod
|
def _retry_on_error( # type: ignore
|
||||||
def _retry_on_error(
|
|
||||||
error_cls: type[Exception],
|
error_cls: type[Exception],
|
||||||
max_retries: int,
|
max_retries: int,
|
||||||
backoff: int = 0,
|
backoff: int = 0,
|
||||||
|
@ -147,7 +147,6 @@ class SyncManager:
|
|||||||
|
|
||||||
self.local_observer_thread: Observer | None = None
|
self.local_observer_thread: Observer | None = None
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def _with_lock(fn: FT) -> FT: # type: ignore
|
def _with_lock(fn: FT) -> FT: # type: ignore
|
||||||
@wraps(fn)
|
@wraps(fn)
|
||||||
def wrapper(self, *args, **kwargs):
|
def wrapper(self, *args, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user