OXIESEC PANEL
- Current Dir:
/
/
snap
/
core24
/
888
/
usr
/
lib
/
python3.12
/
test
/
typinganndata
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/18/2025 08:12:15 AM
rwxr-xr-x
📄
__init__.py
0 bytes
02/04/2025 02:48:35 PM
rw-r--r--
📁
__pycache__
-
03/18/2025 08:12:15 AM
rwxr-xr-x
📄
_typed_dict_helper.py
859 bytes
02/04/2025 02:48:35 PM
rw-r--r--
📄
ann_module.py
1.09 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
ann_module2.py
519 bytes
02/04/2025 02:48:35 PM
rw-r--r--
📄
ann_module3.py
448 bytes
02/04/2025 02:48:35 PM
rw-r--r--
📄
ann_module4.py
81 bytes
02/04/2025 02:48:35 PM
rw-r--r--
📄
ann_module5.py
202 bytes
02/04/2025 02:48:35 PM
rw-r--r--
📄
ann_module6.py
138 bytes
02/04/2025 02:48:35 PM
rw-r--r--
📄
ann_module7.py
295 bytes
02/04/2025 02:48:35 PM
rw-r--r--
📄
ann_module8.py
177 bytes
02/04/2025 02:48:35 PM
rw-r--r--
📄
ann_module9.py
280 bytes
02/04/2025 02:48:35 PM
rw-r--r--
📄
mod_generics_cache.py
508 bytes
02/04/2025 02:48:35 PM
rw-r--r--
Editing: ann_module3.py
Close
""" Correct syntax for variable annotation that should fail at runtime in a certain manner. More examples are in test_grammar and test_parser. """ def f_bad_ann(): __annotations__[1] = 2 class C_OK: def __init__(self, x: int) -> None: self.x: no_such_name = x # This one is OK as proposed by Guido class D_bad_ann: def __init__(self, x: int) -> None: sfel.y: int = 0 def g_bad_ann(): no_such_name.attr: int = 0