-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Move final detection for Enum in checker.py
#11984
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
Conversation
JukkaL
left a comment
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:
finaldetection logic fromsemanal.pytochecker.py. Why? Because we need type checking! For example, methods, properties, and other descriptors are not counted asEnummembres.is_finalanymore. Why? It is too disruptive. Now this is a special-case forEnumonlyCloses #11850