-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Use assignment instead of annotation in third party enums #11957
Conversation
This comment has been minimized.
This comment has been minimized.
WORD: int | ||
X: int | ||
VERBOSE: int | ||
A = RegexFlag.A |
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.
Should all of the module constants in this file be Final
?
A = RegexFlag.A | |
A: Final = RegexFlag.A |
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.
Good idea, done.
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.
Looks like pytype isn't happy about this change
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.
Ah well, thanks for trying! :-)
This comment has been minimized.
This comment has been minimized.
This reverts commit 1355aae.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Follow up to #11956.
This PR handles all third party stubs except Pillow and pygit2 that I'll change in a follow up.