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: Interaction with get_type_hints and Annotated <3.11. #312

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DanCardin
Copy link

@DanCardin DanCardin commented Dec 8, 2023

I now see why #94 opted to avoid copying the whole function 😮‍💨

Fixes #310.

Although its unclear to me whether/how fully replicating ForwardRef might have downstream effects on things. Certainly it seems like anyone using isinstance(x, ForwardRef) will not work after this below 3.11, but the original class is also Final, so I wasn't sure what else to do about it.

Copy link

cpython-cla-bot bot commented Dec 8, 2023

All commit authors signed the Contributor License Agreement.
CLA signed

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.

Annotated/get_type_hints interaction in python <3.11
1 participant