Skip to content

Fix invalid E231 error with f-strings#8369

Merged
charliermarsh merged 1 commit intomainfrom
charlie/f
Oct 30, 2023
Merged

Fix invalid E231 error with f-strings#8369
charliermarsh merged 1 commit intomainfrom
charlie/f

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

Summary

We were considering the { within an f-string to be a left brace, which caused the "space-after-colon" rule to trigger incorrectly.

Closes #8299.

@charliermarsh charliermarsh added the bug Something isn't working label Oct 30, 2023
@charliermarsh charliermarsh merged commit c674db6 into main Oct 30, 2023
@charliermarsh charliermarsh deleted the charlie/f branch October 30, 2023 23:38
@github-actions
Copy link
Copy Markdown
Contributor

PR Check Results

Ecosystem

✅ ecosystem check detected no linter changes.

@dhruvmanila
Copy link
Copy Markdown
Member

Thanks!

@bigluck
Copy link
Copy Markdown

bigluck commented Oct 31, 2023

Thanks so much @charliermarsh !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python Substring: infine loop using ruff v0.1.2

3 participants