summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_typing.py
diff options
context:
space:
mode:
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 398add0..7f96aff 100644
--- a/Lib/test/test_typing.py
+++ b/Lib/test/test_typing.py
@@ -2456,6 +2456,12 @@ class ForwardRefTests(BaseTestCase):
self.assertEqual(get_type_hints(foo, globals(), locals()),
{'a': tuple[T]})
+ def test_double_forward(self):
+ def foo(a: 'List[\'int\']'):
+ pass
+ self.assertEqual(get_type_hints(foo, globals(), locals()),
+ {'a': List[int]})
+
def test_forward_recursion_actually(self):
def namespace1():
a = typing.ForwardRef('A')