aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/mod_generics_cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/mod_generics_cache.py')
-rw-r--r--Lib/test/mod_generics_cache.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/Lib/test/mod_generics_cache.py b/Lib/test/mod_generics_cache.py
new file mode 100644
index 00000000000..d9a60b4b28c
--- /dev/null
+++ b/Lib/test/mod_generics_cache.py
@@ -0,0 +1,14 @@
+"""Module for testing the behavior of generics across different modules."""
+
+from typing import TypeVar, Generic
+
+T = TypeVar('T')
+
+
+class A(Generic[T]):
+ pass
+
+
+class B(Generic[T]):
+ class A(Generic[T]):
+ pass