aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/typinganndata/fwdref_module.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/typinganndata/fwdref_module.py')
-rw-r--r--Lib/test/typinganndata/fwdref_module.py6
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 00000000000..7347a7a4245
--- /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__)