diff options
| author | Nikita Sobolev <mail@sobolevn.me> | 2023-11-08 14:19:34 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-08 14:19:34 (GMT) |
| commit | 82e36dba45b750ad4ed68735eb05bb939968a1fa (patch) | |
| tree | 77454776f77b7610c477ce030ea8a2d8c0258095 /Lib/test/mod_generics_cache.py | |
| parent | 8fbe5314cd6544bdcd50b3a57e0f8a9c6bf97374 (diff) | |
| download | cpython-82e36dba45b750ad4ed68735eb05bb939968a1fa.zip cpython-82e36dba45b750ad4ed68735eb05bb939968a1fa.tar.gz cpython-82e36dba45b750ad4ed68735eb05bb939968a1fa.tar.bz2 | |
gh-108303: Move more `typing` related files to `Lib/test/typinganndata` (#111825)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Lib/test/mod_generics_cache.py')
| -rw-r--r-- | Lib/test/mod_generics_cache.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/Lib/test/mod_generics_cache.py b/Lib/test/mod_generics_cache.py deleted file mode 100644 index 6c1ee2f..0000000 --- a/Lib/test/mod_generics_cache.py +++ /dev/null @@ -1,24 +0,0 @@ -"""Module for testing the behavior of generics across different modules.""" - -from typing import TypeVar, Generic, Optional, TypeAliasType - -default_a: Optional['A'] = None -default_b: Optional['B'] = None - -T = TypeVar('T') - - -class A(Generic[T]): - some_b: 'B' - - -class B(Generic[T]): - class A(Generic[T]): - pass - - my_inner_a1: 'B.A' - my_inner_a2: A - my_outer_a: 'A' # unless somebody calls get_type_hints with localns=B.__dict__ - -type Alias = int -OldStyle = TypeAliasType("OldStyle", int) |
