Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[pycodestyle] Fix E731 autofix creating a syntax error for expressions spanned across multiple lines #18479

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

Merged
merged 3 commits into from
Jun 13, 2025

Conversation

LaBatata101
Copy link
Contributor

Summary

Fixes #18475

Test Plan

Add regression test

…xpressions spanned across multiple lines
Copy link
Contributor

github-actions bot commented Jun 5, 2025

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@ntBre ntBre added bug Something isn't working fixes Related to suggested fixes for violations labels Jun 5, 2025
@ntBre ntBre self-requested a review June 5, 2025 16:47
@LaBatata101 LaBatata101 changed the title [pycodestyle] Fix E731 autofix creating a syntax error for if expressions spanned across multiple lines [pycodestyle] Fix E731 autofix creating a syntax error for expressions spanned across multiple lines Jun 12, 2025
@LaBatata101 LaBatata101 requested a review from MichaReiser June 12, 2025 13:36
@LaBatata101 LaBatata101 requested a review from MichaReiser June 12, 2025 14:13
Copy link
Member

@MichaReiser MichaReiser left a comment

Choose a reason for hiding this comment

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

thank you

@MichaReiser MichaReiser merged commit 76d9009 into astral-sh:main Jun 13, 2025
33 of 34 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.

[Fix error] unsafe-fixes introduces a syntax error
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.