Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: Interaction with get_type_hints and Annotated <3.11. #312

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

Draft
DanCardin wants to merge 1 commit into python:main
base: main
Choose a base branch
Loading
from DanCardin:get_type_hints_annotated

Conversation

@DanCardin
Copy link

@DanCardin DanCardin commented Dec 8, 2023
edited
Loading

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

ghost commented Dec 8, 2023
edited by ghost
Loading

All commit authors signed the Contributor License Agreement.
CLA signed

Copy link

python-cla-bot bot commented Apr 6, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

Copy link
Contributor

I think this has been superseded by #482?

Copy link
Contributor

Daraan commented Aug 27, 2025

I think this has been superseded by #482?

I think so as well. Its a possible reference in case more needs to be pulled back at some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Annotated/get_type_hints interaction in python <3.11

AltStyle によって変換されたページ (->オリジナル) /