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

Recognise Python's magic methods #80

Open
jalanb opened this issue Jun 22, 2022 · 0 comments · May be fixed by #81
Open

Recognise Python's magic methods #80

jalanb opened this issue Jun 22, 2022 · 0 comments · May be fixed by #81

Comments

@jalanb
Copy link

jalanb commented Jun 22, 2022

Python code which defines "magic methods" (a.k.a. "dunder methods") can lead to a lot of errors from flake8-spellcheck

For example, each of the following methods will raise errors, because eq, gt, radd, etc are not valid English words

class Fred:
    def __eq__(self, other): pass
    def __gt__(self, other): pass
    def __radd__(self, other): pass
    def __aiter__(self, other): pass
    def __matmul__(self, other): pass
    def __instancecheck__(self, other): pass
@jalanb jalanb linked a pull request Jun 22, 2022 that will close this issue
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 a pull request may close this issue.

1 participant