-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Move final
detection for Enum
in checker.py
#11984
Conversation
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.
Thanks, looks good! It makes sense to do these checks during type checking. Left a few nits; feel to merge when you've addressed them (and fixed the merge conflict).
Fixed merge conflicts, rebased, waiting for the CI to pass and merging 🎉 |
@JukkaL I am going to use these guidelines for merging process: https://github.com/python/mypy/blob/master/CONTRIBUTING.md#core-developer-guidelines |
Done! My first merged PR 🎉 |
Congratulations! |
Changes:
final
detection logic fromsemanal.py
tochecker.py
. Why? Because we need type checking! For example, methods, properties, and other descriptors are not counted asEnum
membres.is_final
anymore. Why? It is too disruptive. Now this is a special-case forEnum
onlyCloses #11850