From bf0aa5e8aa508da039fb0a7ad7cb4345a51717ab Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Wed, 17 Aug 2022 22:52:15 +0300 Subject: [PATCH] repo: data: ignore pylint false-positives --- dvc/repo/data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dvc/repo/data.py b/dvc/repo/data.py index e1929dbc2..f5f55b283 100644 --- a/dvc/repo/data.py +++ b/dvc/repo/data.py @@ -85,7 +85,7 @@ def _granular_diff( items = getattr(diff_data, state) output[state].extend( path_join(root, *item.new.key) - for item in items + for item in items # pylint: disable=not-an-iterable if not (drop_root and item.new.key == ROOT) ) # TODO: PERF: diff is checking not_in_cache for each even if we only @@ -94,7 +94,7 @@ def _granular_diff( # unstaged. We currently don't know if it is really modified. output["not_in_cache"].extend( path_join(root, *item.new.key) - for item in items + for item in items # pylint: disable=not-an-iterable if not item.old.in_cache and not (drop_root and item.new.key == ROOT) and state != "added"