Skip to content

Fix message for __aenter__ in PLC2801#9492

Merged
charliermarsh merged 1 commit intoastral-sh:mainfrom
alex-700:patch-1
Jan 12, 2024
Merged

Fix message for __aenter__ in PLC2801#9492
charliermarsh merged 1 commit intoastral-sh:mainfrom
alex-700:patch-1

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

@github-actions
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
@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.

3 participants