fs: get rid of unused DETAIL_FIELDS

This commit is contained in:
Ruslan Kuprieiev
2021-12-10 18:02:22 +02:00
parent 81eda7e2b7
commit 896bbf1fc6
6 changed files with 1 additions and 7 deletions
-1
View File
@@ -41,7 +41,6 @@ def _az_config():
class AzureFileSystem(CallbackMixin, ObjectFSWrapper):
scheme = Schemes.AZURE
PARAM_CHECKSUM = "etag"
DETAIL_FIELDS = frozenset(("etag", "size"))
REQUIRES = {
"adlfs": "adlfs",
"knack": "knack",
+1 -2
View File
@@ -4,7 +4,7 @@ import os
from concurrent.futures import ThreadPoolExecutor, as_completed
from functools import partialmethod
from multiprocessing import cpu_count
from typing import ClassVar, Dict, FrozenSet, Optional
from typing import ClassVar, Dict, Optional
from funcy import cached_property
from tqdm.utils import CallbackIOWrapper
@@ -54,7 +54,6 @@ class FileSystem:
CHUNK_SIZE = 64 * 1024 * 1024 # 64 MiB
PARAM_CHECKSUM: ClassVar[Optional[str]] = None
DETAIL_FIELDS: FrozenSet[str] = frozenset()
def __init__(self, **kwargs):
self._check_requires(**kwargs)
-1
View File
@@ -12,7 +12,6 @@ class GSFileSystem(CallbackMixin, ObjectFSWrapper):
scheme = Schemes.GS
REQUIRES = {"gcsfs": "gcsfs"}
PARAM_CHECKSUM = "etag"
DETAIL_FIELDS = frozenset(("etag", "size"))
def _prepare_credentials(self, **config):
login_info = {"consistency": None}
-1
View File
@@ -18,7 +18,6 @@ class OSSFileSystem(ObjectFSWrapper):
PARAM_CHECKSUM = "etag"
COPY_POLL_SECONDS = 5
LIST_OBJECT_PAGE_SIZE = 100
DETAIL_FIELDS = frozenset(("etag", "size"))
def _prepare_credentials(self, **config):
login_info = {}
-1
View File
@@ -18,7 +18,6 @@ class BaseS3FileSystem(ObjectFSWrapper):
scheme = Schemes.S3
REQUIRES = {"s3fs": "s3fs", "boto3": "boto3"}
PARAM_CHECKSUM = "etag"
DETAIL_FIELDS = frozenset(("etag", "size"))
_GRANTS = {
"grant_full_control": "GrantFullControl",
-1
View File
@@ -17,7 +17,6 @@ class WebDAVFileSystem(FSSpecWrapper): # pylint:disable=abstract-method
TRAVERSE_PREFIX_LEN = 2
REQUIRES = {"webdav4": "webdav4"}
PARAM_CHECKSUM = "etag"
DETAIL_FIELDS = frozenset(("etag", "size"))
def __init__(self, **config):
super().__init__(**config)