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__ #251

Merged

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

Cherry-picked to before_v1 to help you out :)

I'd super appreciate a minor version or bugfix release with this

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`

Cherry-picked to `before_v1` to help you out :)
@kemingy
Copy link
Member

kemingy commented Aug 6, 2022

LGTM. Will create a release later.

@kemingy
Copy link
Member

kemingy commented Aug 6, 2022

@kageurufu
Copy link
Contributor Author

Done!

@kemingy kemingy merged commit 668c88a into 0b01001001:before_v1 Aug 7, 2022
@kageurufu kageurufu deleted the before_v1_use_get_type_hints branch August 8, 2022 14:46
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