for target in targets
if LintTarget.is_lintable(target.adaptor, union_membership=union_membership)
)
results = [result for results in nested_results for result in results]
if not results:
return Lint(exit_code=0)
After Change
) -> Lint:
adaptors_with_origins = [
TargetAdaptorWithOrigin.create(target_with_origin.target.adaptor, target_with_origin.origin)
for target_with_origin in targets_with_origins
]
nested_results = await MultiGet(
Get[LintResults](LintTarget, adaptor_with_origin)
for adaptor_with_origin in adaptors_with_origins
if LintTarget.is_lintable(adaptor_with_origin, union_membership=union_membership)
)
results = list(itertools.chain.from_iterable(nested_results))
if not results:
return Lint(exit_code=0)