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

Fix message for __aenter__ in PLC2801 #9492

Merged
merged 1 commit into from
Jan 12, 2024
Merged

Conversation

alex-700
Copy link
Contributor

Summary

Fix the message for __aenter__ in PLC2801 (introduced in #9166)
There is no aenter builtin in Python, so the current message is misleading.
I take the message from original lint https://github.com/pylint-dev/pylint/blob/main/pylint/constants.py#L211

P.S. I think here should be more accurate synchronization with original lint (e.g. the current implementation will not lint __enter__ on my first sight), but it is out-of-scope of this change.

Test Plan

Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@charliermarsh charliermarsh added the bug Something isn't working label Jan 12, 2024
@charliermarsh
Copy link
Member

Thanks!

@charliermarsh charliermarsh merged commit 1602df1 into astral-sh:main Jan 12, 2024
17 checks passed
@diceroll123
Copy link
Contributor

Woops!

@alex-700 alex-700 deleted the patch-1 branch February 3, 2024 22:09
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.

None yet

3 participants