Skip to content

Commit

Permalink
repo: data: ignore pylint false-positives
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop committed Aug 17, 2022
1 parent 3b38663 commit bf0aa5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dvc/repo/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def path_join(root: str, *paths: str) -> str:
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
Expand All @@ -94,7 +94,7 @@ def path_join(root: str, *paths: str) -> str:
# 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"
Expand Down

0 comments on commit bf0aa5e

Please sign in to comment.