Skip to content

Conversation

@zihengCat
Copy link
Contributor

@zihengCat zihengCat commented May 25, 2020

``List[ForwardRef("SomeClass")]``. This class should not be instantiated by
a user, but may be used by introspection tools.

.. function:: NewType(typ)
Copy link
Contributor

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!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done! @csabella

Copy link
Member

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!

@bedevere-bot
Copy link

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 I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

Copy link
Member

@gvanrossum gvanrossum left a 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’?

@gvanrossum gvanrossum changed the title bpo-40745: fix a small typo in library/typing .rst doc bpo-40745: Fix typos in NewType docs May 25, 2020
@zihengCat
Copy link
Contributor Author

LG. Why did you change ‘typ’ to ‘tp’?

@gvanrossum

Screen Shot 2020-05-26 at 10 31 25

@miss-islington
Copy link
Contributor

Thanks @zihengCat for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 26, 2020
(cherry picked from commit 2b0e654)

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

GH-20410 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 May 26, 2020
(cherry picked from commit 2b0e654)

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

GH-20411 is a backport of this pull request to the 3.8 branch.

miss-islington added a commit that referenced this pull request May 26, 2020
(cherry picked from commit 2b0e654)

Co-authored-by: ziheng <[email protected]>
miss-islington added a commit that referenced this pull request May 26, 2020
(cherry picked from commit 2b0e654)

Co-authored-by: ziheng <[email protected]>
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.

7 participants