| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good. We also test for __qualname__ and __module__; should we document those as well?
cpython/Lib/test/test_typing.py
Lines 6658 to 6669 in c90a862
Sorry, something went wrong.
|
__qualname__ is actually wrong as implemented (it's always the same as __name__) and __module__ is mostly an implementation detail for pickling, so I'd prefer to leave those undocumented. |
Sorry, something went wrong.
I feel like it could be useful to be able to know the module the newtype was defined in, and it seems useful to mention the ways in which instances of NewType are similar to classes, even though they're not classes. |
Sorry, something went wrong.
|
Thanks @JelleZijlstra for the PR, and @AlexWaygood for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, something went wrong.
(cherry picked from commit 41768a2) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
|
GH-104906 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
(cherry picked from commit 41768a2) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
|
GH-104907 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #104874
📚 Documentation preview 📚: https://cpython-previews--104875.org.readthedocs.build/