summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_typing.py
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2025-07-07 00:10:57 (GMT)
committerGitHub <noreply@github.com>2025-07-07 00:10:57 (GMT)
commit3d01565da4dfca00c2db28f99e710e40e405a5d1 (patch)
treedd0babd1bdc646c0ee03eb4170997f5e074cbae2 /Lib/test/test_typing.py
parentbd97cb822922c4577238e376d1ab0b28aa475e9d (diff)
downloadcpython-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.py6
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):