[3.10] bpo-46655: allow stringized TypeAlias with get_type_hints (GH-31156). (#31175)

(cherry picked from commit 77b025be4a)

Co-authored-by: Gregory Beauregard <greg@greg.red>
This commit is contained in:
Gregory Beauregard 2022-02-07 08:21:56 -08:00 committed by GitHub
parent c1ff4cb98b
commit e2eeffefed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1 @@
In :func:`typing.get_type_hints`, support evaluating bare stringified ``TypeAlias`` annotations. Patch by Gregory Beauregard.