-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-43988: Use check disallow instantiation helper #26392
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
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.
I suggest to avoid tp = ...
and then use tp, since "tp" name doesn't help: use directly "...". I wrote some examples.
Merged, thanks. This helper makes me more confident that the test actually checks that the type is immutable. |
Great, thanks for reviewing and improving the PR! |
https://bugs.python.org/issue43988