diff options
author | Niklas Rosenstein <rosensteinniklas@gmail.com> | 2022-03-07 18:02:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-07 18:02:59 (GMT) |
commit | b465b606049f6f7dd0711cb031fdaa251818741a (patch) | |
tree | 6f7400938ba0ed3d7b19ffdfe834135e0eaa8575 /Misc | |
parent | 77446d2aa56e9e3262d9d2247342bbbb0ff5e907 (diff) | |
download | cpython-b465b606049f6f7dd0711cb031fdaa251818741a.zip cpython-b465b606049f6f7dd0711cb031fdaa251818741a.tar.gz cpython-b465b606049f6f7dd0711cb031fdaa251818741a.tar.bz2 |
bpo-41370: Evaluate strings as forward refs in PEP 585 generics (GH-30900)
This removes discrepancy between list["int"] and List["int"].
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-01-27-11-54-16.bpo-41370.gYxCPE.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-01-27-11-54-16.bpo-41370.gYxCPE.rst b/Misc/NEWS.d/next/Library/2022-01-27-11-54-16.bpo-41370.gYxCPE.rst new file mode 100644 index 0000000..d9ad2af --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-01-27-11-54-16.bpo-41370.gYxCPE.rst @@ -0,0 +1 @@ +:func:`typing.get_type_hints` now supports evaluating strings as forward references in :ref:`PEP 585 generic aliases <types-genericalias>`. |