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/test_typing.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/test_typing.py')
-rw-r--r-- | Lib/test/test_typing.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 983fb39..cd552f9 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -7328,6 +7328,12 @@ class EvaluateForwardRefTests(BaseTestCase): list[EqualToForwardRef('A')], ) + def test_with_module(self): + from test.typinganndata import fwdref_module + + typing.evaluate_forward_ref( + fwdref_module.fw,) + class CollectionsAbcTests(BaseTestCase): |