Skip to content

Correct documentation for NewType #11621

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

NewType is a class in Python >=3.10, meaning the mypy documentation is no longer accurate.

Closes #11620

NewType is a class in Python >=3.10, meaning the mypy documentation is no longer accurate.

Closes python#11620
@AlexWaygood
Copy link
Member Author

@AlexWaygood
Copy link
Member Author

AlexWaygood commented Nov 26, 2021

Similar PR submitted to cpython to correct the docstring of typing.NewType: python/cpython#29785

(This has just been merged.)

@hauntsaninja hauntsaninja merged commit eea4c76 into python:master Nov 26, 2021
@AlexWaygood AlexWaygood deleted the patch-1 branch November 26, 2021 08:47
@AlexWaygood
Copy link
Member Author

Thanks @hauntsaninja!

tushar-deepsource pushed a commit to DeepSourceCorp/mypy that referenced this pull request Jan 20, 2022
NewType is a class in Python >=3.10, meaning the mypy documentation is no longer accurate.

Closes python#11620
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NewType documentation is incorrect
2 participants