OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3.7
/
test
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:26:24 AM
rwxr-xr-x
📄
__init__.py
47 bytes
12/09/2021 05:04:37 PM
rw-r--r--
📄
__main__.py
41 bytes
12/09/2021 05:04:37 PM
rw-r--r--
📁
__pycache__
-
05/09/2024 06:49:08 AM
rwxr-xr-x
📄
ann_module.py
953 bytes
12/09/2021 05:04:37 PM
rw-r--r--
📄
ann_module2.py
519 bytes
12/09/2021 05:04:37 PM
rw-r--r--
📄
ann_module3.py
448 bytes
12/09/2021 05:04:37 PM
rw-r--r--
📁
libregrtest
-
05/09/2024 06:49:08 AM
rwxr-xr-x
📄
regrtest.py
1.33 KB
12/09/2021 05:04:37 PM
rwxr-xr-x
📁
support
-
05/09/2024 06:49:08 AM
rwxr-xr-x
📄
test_support.py
21.31 KB
12/09/2021 05:04:37 PM
rw-r--r--
Editing: ann_module.py
Close
""" The module for testing variable annotations. Empty lines above are for good reason (testing for correct line numbers) """ from typing import Optional __annotations__[1] = 2 class C: x = 5; y: Optional['C'] = None from typing import Tuple x: int = 5; y: str = x; f: Tuple[int, int] class M(type): __annotations__['123'] = 123 o: type = object (pars): bool = True class D(C): j: str = 'hi'; k: str= 'bye' from types import new_class h_class = new_class('H', (C,)) j_class = new_class('J') class F(): z: int = 5 def __init__(self, x): pass class Y(F): def __init__(self): super(F, self).__init__(123) class Meta(type): def __new__(meta, name, bases, namespace): return super().__new__(meta, name, bases, namespace) class S(metaclass = Meta): x: str = 'something' y: str = 'something else' def foo(x: int = 10): def bar(y: List[str]): x: str = 'yes' bar()