repo: data: ignore pylint false-positives

This commit is contained in:
Ruslan Kuprieiev
2022-08-17 23:02:22 +03:00
parent 3b3866323e
commit bf0aa5e8aa
+2 -2
View File
@@ -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"