OXIESEC PANEL
- Current Dir:
/
/
snap
/
core20
/
2599
/
usr
/
lib
/
python3.8
/
test
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/26/2025 10:13:33 PM
rwxr-xr-x
📄
__init__.py
47 bytes
03/18/2025 08:04:55 PM
rw-r--r--
📄
__main__.py
41 bytes
03/18/2025 08:04:55 PM
rw-r--r--
📁
__pycache__
-
05/26/2025 10:13:33 PM
rwxr-xr-x
📄
ann_module.py
1.08 KB
03/18/2025 08:04:55 PM
rw-r--r--
📄
ann_module2.py
519 bytes
03/18/2025 08:04:55 PM
rw-r--r--
📄
ann_module3.py
448 bytes
03/18/2025 08:04:55 PM
rw-r--r--
📁
libregrtest
-
05/26/2025 10:13:33 PM
rwxr-xr-x
📄
regrtest.py
1.33 KB
03/18/2025 08:04:55 PM
rwxr-xr-x
📁
support
-
05/26/2025 10:13:33 PM
rwxr-xr-x
📄
test_support.py
24.12 KB
03/18/2025 08:04:55 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