We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ruff 0.45
The C400 unsafe fix says that that it sometimes drops comments. It may also generate broken code:
ruff check fix --unsafe-fixes --select C400
list( (1 for _ in range(1)) )
expected
[ 1 for _ in range(1) ] # [1]
actual
[ (1 for _ in range(1)) ] # [<generator object <genexpr> at ...>
The text was updated successfully, but these errors were encountered:
👍 Yeah that's a bug (rather than a question of fix safety). Thanks.
Sorry, something went wrong.
flake8-comprehension
[flake8-comprehension] Strip parentheses around generators in C400 (#…
a8d1328
…11607) ## Summary Closes #11603.
charliermarsh
Successfully merging a pull request may close this issue.
Ruff 0.45
The C400 unsafe fix says that that it sometimes drops comments. It may also generate broken code:
ruff check fix --unsafe-fixes --select C400
expected
actual
The text was updated successfully, but these errors were encountered: