-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-40745: Fix typos in NewType docs #20379
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
Doc/library/typing.rst
Outdated
@@ -1023,7 +1023,7 @@ The module defines the following classes, functions and decorators: | |||
|
|||
.. function:: NewType(typ) |
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.
It looks like the function signature for NewType
doesn't match the examples since they call it with two parameters, but there's only one here. Can you also add that in this patch? Thanks!
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.
Done! @csabella
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.
And thanks @csabella for your keen eye!
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
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.
LG. Why did you change ‘typ’ to ‘tp’?
|
Thanks @zihengCat for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9. |
(cherry picked from commit 2b0e654) Co-authored-by: ziheng <[email protected]>
GH-20410 is a backport of this pull request to the 3.9 branch. |
(cherry picked from commit 2b0e654) Co-authored-by: ziheng <[email protected]>
GH-20411 is a backport of this pull request to the 3.8 branch. |
(cherry picked from commit 2b0e654) Co-authored-by: ziheng <[email protected]>
(cherry picked from commit 2b0e654) Co-authored-by: ziheng <[email protected]>
https://bugs.python.org/issue40745
Automerge-Triggered-By: @gvanrossum