Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placate flake8's new backslash-in-parens warning #843

Merged
merged 1 commit into from
Jun 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions loopy/transform/padding.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ def map_kernel(self, kernel, within=lambda *args: True):
# While subst rules are not allowed in assignees, the mapper
# may perform tasks entirely unrelated to subst rules, so
# we must map assignees, too.
insn if not kernel.substitutions and not within(kernel, insn, ()) \
and not any(name in self.arg_names for name in \
insn.dependency_names()) else
self.map_instruction(kernel,
insn if not kernel.substitutions and not within(kernel, insn, ())
and not any(name in self.arg_names for name in insn.dependency_names())
else self.map_instruction(kernel,
insn.with_transformed_expressions(
lambda expr: self(expr, kernel, insn))) # noqa: B023
for insn in kernel.instructions]
Expand Down
Loading