fix linter issue

This commit is contained in:
Saugat Pachhai (सौगात)
2022-05-23 14:12:54 +05:45
committed by skshetry
parent b5c28dd9f9
commit 0c5a18513c
2 changed files with 9 additions and 12 deletions
+4 -4
View File
@@ -164,11 +164,11 @@ class _DataFileSystem(AbstractFileSystem): # pylint:disable=abstract-method
ret["type"] = "directory"
return ret
def get_file(self, rpath, lpath, callback=DEFAULT_CALLBACK, **kwargs):
def get_file( # pylint: disable=arguments-differ
self, rpath, lpath, callback=DEFAULT_CALLBACK, **kwargs
):
fs, path = self._get_fs_path(rpath)
fs.get_file( # pylint: disable=protected-access
path, lpath, callback=callback, **kwargs
)
fs.get_file(path, lpath, callback=callback, **kwargs)
def checksum(self, path):
info = self.info(path)
+5 -8
View File
@@ -375,22 +375,19 @@ class _DvcFileSystem(AbstractFileSystem): # pylint:disable=abstract-method
return infos
def get_file(self, rpath, lpath, callback=DEFAULT_CALLBACK, **kwargs):
def get_file( # pylint: disable=arguments-differ
self, rpath, lpath, callback=DEFAULT_CALLBACK, **kwargs
):
fs, fs_path, dvc_fs, dvc_path = self._get_fs_pair(rpath)
if fs:
try:
fs.get_file( # pylint: disable=protected-access
fs_path, lpath, callback=callback, **kwargs
)
fs.get_file(fs_path, lpath, callback=callback, **kwargs)
return
except FileNotFoundError:
if not dvc_fs:
raise
dvc_fs.get_file( # pylint: disable=protected-access
dvc_path, lpath, callback=callback, **kwargs
)
dvc_fs.get_file(dvc_path, lpath, callback=callback, **kwargs)
def info(self, path, **kwargs):
fs, fs_path, dvc_fs, dvc_path = self._get_fs_pair(path)