]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41370: Evaluate strings as forward refs in PEP 585 generics (GH-30900)
authorNiklas Rosenstein <rosensteinniklas@gmail.com>
Mon, 7 Mar 2022 18:02:59 +0000 (19:02 +0100)
committerGitHub <noreply@github.com>
Mon, 7 Mar 2022 18:02:59 +0000 (10:02 -0800)
commitb465b606049f6f7dd0711cb031fdaa251818741a
tree6f7400938ba0ed3d7b19ffdfe834135e0eaa8575
parent77446d2aa56e9e3262d9d2247342bbbb0ff5e907
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>
Lib/test/test_typing.py
Lib/typing.py
Misc/NEWS.d/next/Library/2022-01-27-11-54-16.bpo-41370.gYxCPE.rst [new file with mode: 0644]