diff --git a/dvc/fs/base.py b/dvc/fs/base.py index ebeb56c21..5d3df8851 100644 --- a/dvc/fs/base.py +++ b/dvc/fs/base.py @@ -4,7 +4,7 @@ from functools import partial from multiprocessing import cpu_count from typing import Any, ClassVar, Dict, FrozenSet, Optional -from funcy import cached_property, decorator +from funcy import cached_property from dvc.exceptions import DvcException from dvc.path_info import URLInfo @@ -35,13 +35,6 @@ class RemoteMissingDepsError(DvcException): pass -@decorator -def use_state(call): - fs = call._args[0] # pylint: disable=protected-access - with fs.state: - return call() - - class BaseFileSystem: scheme = "base" REQUIRES: ClassVar[Dict[str, str]] = {} diff --git a/setup.py b/setup.py index 57a3867af..ac992b068 100644 --- a/setup.py +++ b/setup.py @@ -145,6 +145,7 @@ tests_requirements = [ "rangehttpserver==1.2.0", "beautifulsoup4==4.4.0", "pylint==2.5.3", + "astroid<2.5", # temporary required for pylint, see #5469 "pylint-pytest>=0.3.0", "pylint-plugin-utils", "wget",