mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-01 23:08:43 +01:00
fs: get rid of unused DETAIL_FIELDS
This commit is contained in:
@@ -41,7 +41,6 @@ def _az_config():
|
|||||||
class AzureFileSystem(CallbackMixin, ObjectFSWrapper):
|
class AzureFileSystem(CallbackMixin, ObjectFSWrapper):
|
||||||
scheme = Schemes.AZURE
|
scheme = Schemes.AZURE
|
||||||
PARAM_CHECKSUM = "etag"
|
PARAM_CHECKSUM = "etag"
|
||||||
DETAIL_FIELDS = frozenset(("etag", "size"))
|
|
||||||
REQUIRES = {
|
REQUIRES = {
|
||||||
"adlfs": "adlfs",
|
"adlfs": "adlfs",
|
||||||
"knack": "knack",
|
"knack": "knack",
|
||||||
|
|||||||
+1
-2
@@ -4,7 +4,7 @@ import os
|
|||||||
from concurrent.futures import ThreadPoolExecutor, as_completed
|
from concurrent.futures import ThreadPoolExecutor, as_completed
|
||||||
from functools import partialmethod
|
from functools import partialmethod
|
||||||
from multiprocessing import cpu_count
|
from multiprocessing import cpu_count
|
||||||
from typing import ClassVar, Dict, FrozenSet, Optional
|
from typing import ClassVar, Dict, Optional
|
||||||
|
|
||||||
from funcy import cached_property
|
from funcy import cached_property
|
||||||
from tqdm.utils import CallbackIOWrapper
|
from tqdm.utils import CallbackIOWrapper
|
||||||
@@ -54,7 +54,6 @@ class FileSystem:
|
|||||||
CHUNK_SIZE = 64 * 1024 * 1024 # 64 MiB
|
CHUNK_SIZE = 64 * 1024 * 1024 # 64 MiB
|
||||||
|
|
||||||
PARAM_CHECKSUM: ClassVar[Optional[str]] = None
|
PARAM_CHECKSUM: ClassVar[Optional[str]] = None
|
||||||
DETAIL_FIELDS: FrozenSet[str] = frozenset()
|
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
self._check_requires(**kwargs)
|
self._check_requires(**kwargs)
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ class GSFileSystem(CallbackMixin, ObjectFSWrapper):
|
|||||||
scheme = Schemes.GS
|
scheme = Schemes.GS
|
||||||
REQUIRES = {"gcsfs": "gcsfs"}
|
REQUIRES = {"gcsfs": "gcsfs"}
|
||||||
PARAM_CHECKSUM = "etag"
|
PARAM_CHECKSUM = "etag"
|
||||||
DETAIL_FIELDS = frozenset(("etag", "size"))
|
|
||||||
|
|
||||||
def _prepare_credentials(self, **config):
|
def _prepare_credentials(self, **config):
|
||||||
login_info = {"consistency": None}
|
login_info = {"consistency": None}
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ class OSSFileSystem(ObjectFSWrapper):
|
|||||||
PARAM_CHECKSUM = "etag"
|
PARAM_CHECKSUM = "etag"
|
||||||
COPY_POLL_SECONDS = 5
|
COPY_POLL_SECONDS = 5
|
||||||
LIST_OBJECT_PAGE_SIZE = 100
|
LIST_OBJECT_PAGE_SIZE = 100
|
||||||
DETAIL_FIELDS = frozenset(("etag", "size"))
|
|
||||||
|
|
||||||
def _prepare_credentials(self, **config):
|
def _prepare_credentials(self, **config):
|
||||||
login_info = {}
|
login_info = {}
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ class BaseS3FileSystem(ObjectFSWrapper):
|
|||||||
scheme = Schemes.S3
|
scheme = Schemes.S3
|
||||||
REQUIRES = {"s3fs": "s3fs", "boto3": "boto3"}
|
REQUIRES = {"s3fs": "s3fs", "boto3": "boto3"}
|
||||||
PARAM_CHECKSUM = "etag"
|
PARAM_CHECKSUM = "etag"
|
||||||
DETAIL_FIELDS = frozenset(("etag", "size"))
|
|
||||||
|
|
||||||
_GRANTS = {
|
_GRANTS = {
|
||||||
"grant_full_control": "GrantFullControl",
|
"grant_full_control": "GrantFullControl",
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ class WebDAVFileSystem(FSSpecWrapper): # pylint:disable=abstract-method
|
|||||||
TRAVERSE_PREFIX_LEN = 2
|
TRAVERSE_PREFIX_LEN = 2
|
||||||
REQUIRES = {"webdav4": "webdav4"}
|
REQUIRES = {"webdav4": "webdav4"}
|
||||||
PARAM_CHECKSUM = "etag"
|
PARAM_CHECKSUM = "etag"
|
||||||
DETAIL_FIELDS = frozenset(("etag", "size"))
|
|
||||||
|
|
||||||
def __init__(self, **config):
|
def __init__(self, **config):
|
||||||
super().__init__(**config)
|
super().__init__(**config)
|
||||||
|
|||||||
Reference in New Issue
Block a user