class-level decorators are no longer static

This commit is contained in:
samschott 2022-06-09 21:42:28 +02:00
parent bc14064b8f
commit 29382c7adc
2 changed files with 1 additions and 3 deletions

View File

@ -159,8 +159,7 @@ class DropboxClient:
self._is_team_space = self._state.get("account", "path_root_type") == "team"
self._lock = threading.Lock()
@staticmethod
def _retry_on_error(
def _retry_on_error( # type: ignore
error_cls: type[Exception],
max_retries: int,
backoff: int = 0,

View File

@ -147,7 +147,6 @@ class SyncManager:
self.local_observer_thread: Observer | None = None
@staticmethod
def _with_lock(fn: FT) -> FT: # type: ignore
@wraps(fn)
def wrapper(self, *args, **kwargs):