Skip to content

bpo-44353: Correct docstring for NewType #29785

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

Merged
merged 1 commit into from
Nov 26, 2021
Merged

Conversation

AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Nov 26, 2021

The docstring for typing.NewType is no longer strictly accurate, now that NewType is a class, rather than a function

https://bugs.python.org/issue44353

The docstring for `typing.NewType` is no longer strictly accurate, now that `NewType` is a class, rather than a function
@AlexWaygood AlexWaygood changed the title Correct docstring for NewType bpo-44353: Correct docstring for NewType Nov 26, 2021
@bedevere-bot
Copy link

@gvanrossum: Please replace # with GH- in the commit message next time. Thanks!

@AlexWaygood
Copy link
Member Author

Sorry to bother you @gvanrossum — could this possibly be backported to 3.10 as well? 🙂

@Fidget-Spinner Fidget-Spinner added the needs backport to 3.10 only security fixes label Nov 26, 2021
@miss-islington
Copy link
Contributor

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

@miss-islington
Copy link
Contributor

Sorry @AlexWaygood and @gvanrossum, I had trouble checking out the 3.10 backport branch.
Please backport using cherry_picker on command line.
cherry_picker 93c65df83cef71a4bc77d71afecdec8744c4f73a 3.10

@AlexWaygood AlexWaygood deleted the patch-2 branch November 26, 2021 14:31
@Fidget-Spinner Fidget-Spinner added needs backport to 3.10 only security fixes and removed needs backport to 3.10 only security fixes labels Nov 26, 2021
@miss-islington
Copy link
Contributor

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 26, 2021
The docstring for `typing.NewType` is no longer strictly accurate, now that `NewType` is a class, rather than a function
(cherry picked from commit 93c65df)

Co-authored-by: Alex Waygood <[email protected]>
@bedevere-bot
Copy link

GH-29796 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 Nov 26, 2021
miss-islington added a commit that referenced this pull request Nov 26, 2021
The docstring for `typing.NewType` is no longer strictly accurate, now that `NewType` is a class, rather than a function
(cherry picked from commit 93c65df)

Co-authored-by: Alex Waygood <[email protected]>
@AlexWaygood
Copy link
Member Author

Thanks @Fidget-Spinner!

remykarem pushed a commit to remykarem/cpython that referenced this pull request Dec 7, 2021
The docstring for `typing.NewType` is no longer strictly accurate, now that `NewType` is a class, rather than a function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants