-
-
Notifications
You must be signed in to change notification settings - Fork 383
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
2268 only disallow certain magic attributes #2281
Conversation
'__subclasses__', | ||
'__mro__', | ||
'__version__', | ||
_disallowed_magic_attributes: ClassVar[FrozenSet[str]] = frozenset(( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move this to constants.py
, it is rather long!
It would also be a good idea to link to it from the violation's docs.
Thanks a lot for your time and effort 👍
Codecov Report
@@ Coverage Diff @@
## master #2281 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 119 119
Lines 6316 6316
Branches 1409 1409
=========================================
Hits 6316 6316
Continue to review full report at Codecov.
|
@sobolevn note I added some missing magic methods (like |
Yes, please! 👍 I've also added |
Added the changelog entry. I set this PR as a ref since this is where we discussed the fix. |
Thanks again! |
I have made things!
See #2268
Checklist
CHANGELOG.md
Related issues
Closes #2268