-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
gh-139842: Clarify __module__
description in typing.rst
#139863
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
The `__module__` attribute must be a string or `None`, not an actual module instance. See python#139842.
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!
Thanks @pawamoy for the PR, and @AlexWaygood for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…onGH-139863) (cherry picked from commit f575dd9) Co-authored-by: Timothée Mazzucotelli <[email protected]>
…onGH-139863) (cherry picked from commit f575dd9) Co-authored-by: Timothée Mazzucotelli <[email protected]>
GH-139869 is a backport of this pull request to the 3.14 branch. |
GH-139870 is a backport of this pull request to the 3.13 branch. |
…139863) (#139870) Co-authored-by: Timothée Mazzucotelli <[email protected]>
…139863) (#139869) Co-authored-by: Timothée Mazzucotelli <[email protected]>
The
__module__
attribute must be a string orNone
, not an actual module instance. Make it clear in the__module__
attribute description, and consistent with other occurrences throughout the docs.Fixes #139842.
__module__
#139842📚 Documentation preview 📚: https://cpython-previews--139863.org.readthedocs.build/