summaryrefslogtreecommitdiff
path: root/puzzles/40_recursive_types.py
diff options
context:
space:
mode:
Diffstat (limited to 'puzzles/40_recursive_types.py')
-rw-r--r--puzzles/40_recursive_types.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/puzzles/40_recursive_types.py b/puzzles/40_recursive_types.py
new file mode 100644
index 0000000..5de796c
--- /dev/null
+++ b/puzzles/40_recursive_types.py
@@ -0,0 +1,3 @@
+from typing import Union
+
+Foo = list[Union['Foo', int]]