diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2025-07-07 00:10:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-07 00:10:57 (GMT) |
commit | 3d01565da4dfca00c2db28f99e710e40e405a5d1 (patch) | |
tree | dd0babd1bdc646c0ee03eb4170997f5e074cbae2 /Lib/test/typinganndata/fwdref_module.py | |
parent | bd97cb822922c4577238e376d1ab0b28aa475e9d (diff) | |
download | cpython-3d01565da4dfca00c2db28f99e710e40e405a5d1.zip cpython-3d01565da4dfca00c2db28f99e710e40e405a5d1.tar.gz cpython-3d01565da4dfca00c2db28f99e710e40e405a5d1.tar.bz2 |
[3.14] gh-136316: Make typing.evaluate_forward_ref better at evaluating nested forwardrefs (GH-136319) (#136346)
(cherry picked from commit 9312702d2e12c2f58f02bfa02877d0ec790d06bd)
Diffstat (limited to 'Lib/test/typinganndata/fwdref_module.py')
-rw-r--r-- | Lib/test/typinganndata/fwdref_module.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/typinganndata/fwdref_module.py b/Lib/test/typinganndata/fwdref_module.py new file mode 100644 index 0000000..7347a7a --- /dev/null +++ b/Lib/test/typinganndata/fwdref_module.py @@ -0,0 +1,6 @@ +from typing import ForwardRef + +MyList = list[int] +MyDict = dict[str, 'MyList'] + +fw = ForwardRef('MyDict', module=__name__) |