Skip to content
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

Use typing.get_type_hints instead of .__annotations__ #250

Merged
merged 2 commits into from
Aug 7, 2022

Conversation

kageurufu
Copy link
Contributor

https://docs.python.org/3/library/typing.html#typing.get_type_hints

This properly resolves forward annotations, and fixes annotations when
code uses from __future__ import annotations

https://docs.python.org/3/library/typing.html#typing.get_type_hints

This properly resolves forward annotations, and fixes annotations when
 code uses `from __future__ import annotations`
Copy link
Member

@kemingy kemingy 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 your contribution! 🎉

@kemingy kemingy merged commit 25a12f9 into 0b01001001:master Aug 7, 2022
@kageurufu kageurufu deleted the use_get_type_hints branch August 8, 2022 14:46
@kageurufu
Copy link
Contributor Author

Glad to help :)

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.

2 participants