mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
fs: remove unused use_state decorator (#5469)
* fs: remove unused use_state decorator * pylint: limit astroid version
This commit is contained in:
+1
-8
@@ -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]] = {}
|
||||
|
||||
Reference in New Issue
Block a user