/snap/core24/1587/usr/lib/python3.12/test/typinganndata
NameSizeModeActions
__pycache__/-0755rm
ann_module.py11200644editdlrm
ann_module2.py5190644editdlrm
ann_module3.py4480644editdlrm
ann_module4.py810644editdlrm
ann_module5.py2020644editdlrm
ann_module6.py1380644editdlrm
ann_module7.py2950644editdlrm
ann_module8.py1770644editdlrm
ann_module9.py2800644editdlrm
mod_generics_cache.py5080644editdlrm
_typed_dict_helper.py8590644editdlrm
__init__.py00644editdlrm
Edit: /snap/core24/1587/usr/lib/python3.12/test/typinganndata/ann_module2.py (519B)
""" 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()