diff options
author | Germán Méndez Bravo <german.mb@gmail.com> | 2021-07-16 20:49:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-16 20:49:30 -0700 |
commit | 889036f7ef7290ef15b6c3373023f6a35387af0c (patch) | |
tree | 9e9f518eaaba90dd211473bc917b9938f4144fb9 /Python/getargs.c | |
parent | bf89ff96e6ba21bb52b8597b5e51e8ffc57e6589 (diff) | |
download | cpython-889036f7ef7290ef15b6c3373023f6a35387af0c.tar.gz cpython-889036f7ef7290ef15b6c3373023f6a35387af0c.zip |
bpo-41249: Fix postponed annotations for TypedDict (GH-27017)
This fixes TypedDict to work with get_type_hints and postponed evaluation of annotations across modules.
This is done by adding the module name to ForwardRef at the time the object is created and using that to resolve the globals during the evaluation.
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Diffstat (limited to 'Python/getargs.c')
0 files changed, 0 insertions, 0 deletions