Skip to content

Fix example - #359

Open
lgalfaso wants to merge 1 commit into
bazelbuild:masterfrom
lgalfaso:patch-23
Open

Fix example#359
lgalfaso wants to merge 1 commit into
bazelbuild:masterfrom
lgalfaso:patch-23

Conversation

@lgalfaso

Copy link
Copy Markdown
Contributor

The expression a if b else (lambda: c if d else e) is equivalent to a if b else lambda: (c if d else e) and the parens are redundant. I think that the author ment to add the alternative a if b else (lambda: c) if d else e that does require parens.

The expression `a if b else (lambda: c if d else e)` is equivalent to `a if b else lambda: (c if d else e)`. I think that the author ment to add the alternative `a if b else (lambda: c) if d else e` that does require parens.
@lgalfaso
lgalfaso requested a review from brandjon as a code owner July 22, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant