From 0c5a18513c6e21991da87ed844a0e50e1f7e8b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saugat=20Pachhai=20=28=E0=A4=B8=E0=A5=8C=E0=A4=97=E0=A4=BE?= =?UTF-8?q?=E0=A4=A4=29?= Date: Mon, 23 May 2022 14:08:32 +0545 Subject: [PATCH] fix linter issue --- dvc/fs/data.py | 8 ++++---- dvc/fs/dvc.py | 13 +++++-------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/dvc/fs/data.py b/dvc/fs/data.py index 3e84c897d..ee52b9486 100644 --- a/dvc/fs/data.py +++ b/dvc/fs/data.py @@ -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) diff --git a/dvc/fs/dvc.py b/dvc/fs/dvc.py index b1ac5f17b..989a2b734 100644 --- a/dvc/fs/dvc.py +++ b/dvc/fs/dvc.py @@ -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)