Skip to content

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

Merged
ilevkivskyi merged 1 commit intopython:3.7from
itoijala:bpo-34921
Nov 28, 2018
Merged

[3.7] bpo-34921: Allow escaped NoReturn in get_type_hints (GH-9750)#10772
ilevkivskyi merged 1 commit intopython:3.7from
itoijala:bpo-34921

Conversation

@itoijala
Copy link
Copy Markdown
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
Copy Markdown
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