Skip to content

Conversation

@dylwil3
Copy link
Collaborator

@dylwil3 dylwil3 commented Oct 20, 2025

Closes #21000

@dylwil3 dylwil3 added bug Something isn't working fixes Related to suggested fixes for violations labels Oct 20, 2025
@dylwil3 dylwil3 force-pushed the up032-assignment-expr branch from 4d76d57 to 4db779c Compare October 20, 2025 18:21
_,
Expr::Generator(_)
| Expr::Dict(_)
| Expr::Named(_)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice if we could use OperatorPrecedence here (I believe that's the name) instead of listing all expressions

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm... it's not immediately clear how to do this here - especially because some of this logic is to avoid double escaped braces for sets and dicts, like f"{{x}}"

@github-actions
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@dylwil3 dylwil3 merged commit 281ae8e into astral-sh:main Oct 20, 2025
67 of 73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working fixes Related to suggested fixes for violations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ruff suggests invalid code when fixing UP032

2 participants