Skip to content

[pylint] Add buffer methods to bad-dunder-method-name (PLW3201) exclusions#8190

Merged
zanieb merged 1 commit intoastral-sh:mainfrom
TeamSpen210:buffer-special-method
Oct 25, 2023
Merged

[pylint] Add buffer methods to bad-dunder-method-name (PLW3201) exclusions#8190
zanieb merged 1 commit intoastral-sh:mainfrom
TeamSpen210:buffer-special-method

Conversation

@TeamSpen210
Copy link
Contributor

Summary

Python 3.12 added the __buffer__()/__release_buffer_() special methods, which are incorrectly flagged as invalid dunder methods by PLW3201.

Test Plan

Added definitions to the test suite, and confirmed they failed without the fix and are ignored after the fix was done.

@github-actions
Copy link
Contributor

PR Check Results

Ecosystem

✅ ecosystem check detected no changes.

Copy link
Member

@zanieb zanieb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contributing!

@zanieb zanieb added the rule Implementing or modifying a lint rule label Oct 25, 2023
@zanieb zanieb merged commit 8304c41 into astral-sh:main Oct 25, 2023
@TeamSpen210 TeamSpen210 deleted the buffer-special-method branch October 25, 2023 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rule Implementing or modifying a lint rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants