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

Fix ForwardRef issue in Python 3.9.8 #280

Merged
merged 1 commit into from
Dec 18, 2021
Merged

Fix ForwardRef issue in Python 3.9.8 #280

merged 1 commit into from
Dec 18, 2021

Conversation

wyfo
Copy link
Owner

@wyfo wyfo commented Dec 17, 2021

No description provided.

@wyfo wyfo linked an issue Dec 17, 2021 that may be closed by this pull request
@wyfo wyfo merged commit eb56860 into master Dec 18, 2021
@wyfo wyfo deleted the fix_type_hints branch December 18, 2021 07:09
wyfo added a commit that referenced this pull request Dec 18, 2021
wyfo added a commit that referenced this pull request Dec 18, 2021
wyfo added a commit that referenced this pull request Dec 18, 2021
base_annotations = getattr(base_origin, "__dict__", {}).get(
"__annotations__", {}
)
for name, hint in get_type_hints(base_origin).items():
Copy link
Contributor

Choose a reason for hiding this comment

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

I can confirm that adding include_extras=True to this line fixes #281

wyfo added a commit that referenced this pull request Dec 21, 2021
wyfo added a commit that referenced this pull request Dec 21, 2021
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.

ClassVar fails when __future__ annotations used in python3.9
2 participants