typing_extensions icon indicating copy to clipboard operation
typing_extensions copied to clipboard

fix: Interaction with get_type_hints and Annotated <3.11.

Open DanCardin opened this issue 1 year ago • 4 comments
trafficstars

I now see why https://github.com/python/typing_extensions/pull/94 opted to avoid copying the whole function 😮‍💨

Fixes https://github.com/python/typing_extensions/issues/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.

DanCardin avatar Dec 08 '23 16:12 DanCardin

All commit authors signed the Contributor License Agreement.
CLA signed

cpython-cla-bot[bot] avatar Dec 08 '23 16:12 cpython-cla-bot[bot]