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: ann_module2.py
""" Some correct syntax for variable annotation here. More examples are in test_grammar and test_parser. """ from typing import no_type_check, ClassVar i: int = 1 j: int x: float = i/10 def f(): class C: ... return C() f().new_attr: object = object() class C: def __init__(self, x: int) -> None: self.x = x c = C(5) c.new_attr: int = 10 __annotations__ = {} @no_type_check class NTC: def meth(self, param: complex) -> None: ... class CV: var: ClassVar['CV'] CV.var = CV()
SIMPAN PERUBAHAN