Skip to content
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

E502: Fix E502 being disabled after a comment in a logical line #1234

Merged
merged 1 commit into from
Mar 17, 2024
Merged

E502: Fix E502 being disabled after a comment in a logical line #1234

merged 1 commit into from
Mar 17, 2024

Conversation

augustelalande
Copy link
Contributor

@augustelalande augustelalande commented Mar 8, 2024

Since the comment flag was being set and then never disabled in the explicit_line_join implementation, any redundant backslash which occured after the first comment in a logical line would go undetected. e.g.

y = (
    2 + 2  # \
    + 3  # \
    + 4 \
    + 3
)

would not detect the redundant backslash after the 4.

@augustelalande
Copy link
Contributor Author

Is anything blocking this?

@asottile asottile enabled auto-merge March 17, 2024 15:10
@asottile asottile merged commit acbcec4 into PyCQA:main Mar 17, 2024
9 checks passed
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.

None yet

2 participants