Visitar URL original
bpo-41886: Fix documented type of PyType_Type by da-woods · Pull Request #22454 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20260215041258/https://github.com/python/cpython/pull/22454
Skip to content
/ cpython Public

bpo-41886: Fix documented type of PyType_Type#22454

Merged
ammaraskar merged 1 commit intopython:mainfrom
da-woods:typedocfix
Aug 3, 2021
Merged

bpo-41886: Fix documented type of PyType_Type#22454
ammaraskar merged 1 commit intopython:mainfrom
da-woods:typedocfix

Conversation

@da-woods
Copy link
Contributor

@da-woods da-woods commented Sep 29, 2020 •

This change is consistent with the way other type objects are documented

https://bugs.python.org/issue41886

@the-knights-who-say-ni
Copy link

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 username

We couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames:

@da-woods

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!

@ammaraskar
Copy link
Member

Closing and re-opening to trigger CI.

@ammaraskar ammaraskar closed this Aug 2, 2021
@ammaraskar ammaraskar reopened this Aug 2, 2021
Copy link
Member

@ammaraskar ammaraskar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting this, this is indeed incorrect. (the declaration is here: )

PyAPI_DATA(PyTypeObject) PyType_Type; /* built-in 'type' */

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

@ammaraskar ammaraskar added the needs backport to 3.10 only security fixes label Aug 3, 2021
@ammaraskar ammaraskar merged commit ac811f9 into python:main Aug 3, 2021
@miss-islington
Copy link
Contributor

Thanks @da-woods for the PR, and @ammaraskar for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry @da-woods and @ammaraskar, I had trouble checking out the 3.10 backport branch.
Please backport using cherry_picker on command line.
cherry_picker ac811f9b5a68ce8756911ef2c8be83b46696018f 3.10

@miss-islington
Copy link
Contributor

Thanks @da-woods for the PR, and @ammaraskar for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@bedevere-bot
Copy link

GH-27583 is a backport of this pull request to the 3.9 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 3, 2021
(cherry picked from commit ac811f9)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
@ammaraskar ammaraskar added needs backport to 3.10 only security fixes and removed needs backport to 3.10 only security fixes labels Aug 3, 2021
@miss-islington
Copy link
Contributor

Thanks @da-woods for the PR, and @ammaraskar for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-27584 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Aug 3, 2021
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 3, 2021
(cherry picked from commit ac811f9)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
miss-islington added a commit that referenced this pull request Aug 3, 2021
(cherry picked from commit ac811f9)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
miss-islington added a commit that referenced this pull request Aug 3, 2021
(cherry picked from commit ac811f9)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
@da-woods da-woods deleted the typedocfix branch July 30, 2023 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants