Skip to content

[3.7] bpo-34921: Allow escaped NoReturn in get_type_hints (GH-9750) #10772

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 28, 2018

Conversation

itoijala
Copy link
Contributor

@itoijala itoijala commented Nov 28, 2018

Backport the bugfix from master to 3.7.
I ran into the problem at work today again and would love to have the fix in 3.7.2.

This bug only happens with from __future__ import annotations, so backporting to other branches won't make sense.

Original PR description:
bpo-34921: Modified line 133 in Lib/typing.py to fix get_type_hints(NoReturn)

https://bugs.python.org/issue34921

PS: Just signed CLA as well.

https://bugs.python.org/issue34921

Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

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

LGTM!

@ilevkivskyi ilevkivskyi merged commit f71a592 into python:3.7 Nov 28, 2018
@itoijala itoijala deleted the bpo-34921 branch November 28, 2018 18:05
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.

5 participants