OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python311
/
lib
/
python3.11
/
site-packages
/
typish
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
09/05/2025 09:34:01 AM
rwxr-xr-x
📄
__init__.py
1.45 KB
05/08/2024 06:42:59 PM
rw-r--r--
📁
__pycache__
-
05/08/2024 06:42:59 PM
rwxr-xr-x
📄
_classes.py
11.35 KB
05/08/2024 06:42:59 PM
rw-r--r--
📄
_decorators.py
734 bytes
05/08/2024 06:42:59 PM
rw-r--r--
📄
_functions.py
15.25 KB
05/08/2024 06:42:59 PM
rw-r--r--
📄
_meta.py
245 bytes
05/08/2024 06:42:59 PM
rw-r--r--
📄
_state.py
1.27 KB
05/08/2024 06:42:59 PM
rw-r--r--
📄
_types.py
446 bytes
05/08/2024 06:42:59 PM
rw-r--r--
📁
classes
-
05/08/2024 06:42:59 PM
rwxr-xr-x
📁
decorators
-
05/08/2024 06:42:59 PM
rwxr-xr-x
📄
effe.py
841 bytes
05/08/2024 06:42:59 PM
rw-r--r--
📁
functions
-
05/08/2024 06:42:59 PM
rwxr-xr-x
Editing: effe.py
Close
from typing import Tuple, Type from typish import instance_of, subclass_of, TypingType # Kijk hier effe naar: # # A supertype for types like: list, tuple, set, ... (not str!) # Aggregation = type('Aggegation', (object, ), {}) # # # A supertype for types like: List[...], Tuple[...], Set[...] # GenericAggregation = type('GenericAggregation', (Aggregation,), {}) # # # if __name__ == '__main__': # # # # # # print(isinstance(Tuple[int, str], GenericCollectionType)) # def test_is_something_hashable(self): # Sequence[Something['attr': int]] # TODO # # # def test_instance_of_tuple(self): # Tuple[type, ...] # TODO dit dus... # print( instance_of((1, 2, 3), Tuple[int, ...]) ) # print( subclass_of(Tuple[int, ...], Tuple[int, ...]) ) # print( instance_of(Tuple[int], Type[Tuple[int]]) )