fs: remove unused use_state decorator (#5469)

* fs: remove unused use_state decorator

* pylint: limit astroid version
This commit is contained in:
Ruslan Kuprieiev
2021-02-16 02:00:55 +02:00
committed by GitHub
parent a72cea67f1
commit e90c5fdd19
2 changed files with 2 additions and 8 deletions
+1 -8
View File
@@ -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]] = {}
+1
View File
@@ -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",