mirror of
https://github.com/python/cpython.git
synced 2026-02-09 19:31:41 +00:00
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>
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| 2019-11-12-18-59-33.bpo-38741.W7IYkq.rst | ||
| 2021-07-04-11-33-34.bpo-41249.sHdwBE.rst | ||
| 2021-07-09-07-14-37.bpo-41928.Q1jMrr.rst | ||
| 2021-07-12-10-43-31.bpo-44559.YunVKY.rst | ||
| 2021-07-13-09-01-33.bpo-44608.R3IcM1.rst | ||
| 2021-07-16-13-40-31.bpo-40897.aveAre.rst | ||
| README.rst | ||
Put news entry `blurb`_ files for the *Library* section in this directory. .. _blurb: https://pypi.org/project/blurb/