Skip to content

Conversation

@tirkarthi
Copy link
Member

@tirkarthi tirkarthi commented Apr 12, 2021

typing.get_type_hints raises KeyError on synthetic modules that don't appear in sys.modules.

https://bugs.python.org/issue41515

efahl added 2 commits April 12, 2021 05:54
typing.get_type_hints raises KeyError on synthetic modules that don't appear in sys.modules.
Copy link
Member

@Fidget-Spinner Fidget-Spinner left a comment

Choose a reason for hiding this comment

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

Thanks for doing this! I've been eyeing this issue for a while now and I agree with what you said on bpo about more errors with annotations becoming the default. Hopefully with this fix, the transition to 3.10 will be smoother :).

@gvanrossum
Copy link
Member

Thanks! I'll merge when tests pass.

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.

6 participants