Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Correct documentation for NewType#11621

Merged
hauntsaninja merged 1 commit into
python:masterpython/mypy:masterfrom
AlexWaygood:patch-1AlexWaygood/mypy:patch-1Copy head branch name to clipboard
Nov 26, 2021
Merged

Correct documentation for NewType#11621
hauntsaninja merged 1 commit into
python:masterpython/mypy:masterfrom
AlexWaygood:patch-1AlexWaygood/mypy:patch-1Copy head branch name to clipboard

Conversation

@AlexWaygood

@AlexWaygood AlexWaygood commented Nov 26, 2021

Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author

@AlexWaygood

AlexWaygood commented Nov 26, 2021

Copy link
Copy Markdown
Member Author

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
Copy Markdown
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

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.