bpo-41886: Fix documented type of PyType_Type#22454
Conversation
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). Recognized GitHub usernameWe couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames: This might be simply due to a missing "GitHub Name" entry in one's b.p.o account settings. This is necessary for legal reasons before we can look at this contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
|
Closing and re-opening to trigger CI. |
ammaraskar
left a comment
There was a problem hiding this comment.
Thanks for spotting this, this is indeed incorrect. (the declaration is here: )
Line 254 in e06ae75
As you mentioned, other type objects like PyUnicode_Type / PyTuple_Type / etc are documented properly as being PyTypeObject.
Digging into the history, looks like this definition was added a long long time ago (1997) and the mistake has probably just been carried forward un-noticed: ae110af#diff-a29b8c64e8245cccd9673050024feae5580dede1ff3ba575701a96788d71d4c4R1136
|
Thanks @da-woods for the PR, and @ammaraskar for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
|
Sorry @da-woods and @ammaraskar, I had trouble checking out the |
|
Thanks @da-woods for the PR, and @ammaraskar for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9. |
|
GH-27583 is a backport of this pull request to the 3.9 branch. |
(cherry picked from commit ac811f9) Co-authored-by: da-woods <dw-git@d-woods.co.uk>
|
Thanks @da-woods for the PR, and @ammaraskar for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
|
GH-27584 is a backport of this pull request to the 3.10 branch. |
(cherry picked from commit ac811f9) Co-authored-by: da-woods <dw-git@d-woods.co.uk>


This change is consistent with the way other type objects are documented
https://bugs.python.org/issue41886