$96 GRAYBYTE WORDPRESS FILE MANAGER $94

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 2.57.91.158 | ADMIN IP 216.73.216.63
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python311/lib/python3.11/site-packages/typish/

HOME
Current File : /opt/alt/python311/lib/python3.11/site-packages/typish//_decorators.py
"""
PRIVATE MODULE: do not import (from) it directly.

This module contains decorators.
"""
import inspect

from typish._functions import _map_empty, instance_of


def typechecked(decorated):

    sig = inspect.signature(decorated)
    param_names = list(sig.parameters)

    def _wrapper(*args, **kwargs):
        for i, arg in enumerate(args):
            param = sig.parameters[param_names[i]]
            param_type = _map_empty(param.annotation)
            if not instance_of(arg, param_type):
                raise TypeError('Value {} for \'{}\' is not of type \'{}\''
                                .format(arg, param.name, param_type))
        return decorated(*args, **kwargs)

    return _wrapper

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
5 Sep 2025 9.32 AM
root / 996
0755
__pycache__
--
8 May 2024 6.34 PM
root / root
0755
classes
--
8 May 2024 6.34 PM
root / root
0755
decorators
--
8 May 2024 6.34 PM
root / root
0755
functions
--
8 May 2024 6.34 PM
root / root
0755
__init__.py
1.452 KB
8 May 2024 6.34 PM
root / root
0644
_classes.py
11.346 KB
8 May 2024 6.34 PM
root / root
0644
_decorators.py
0.717 KB
8 May 2024 6.34 PM
root / root
0644
_functions.py
15.254 KB
8 May 2024 6.34 PM
root / root
0644
_meta.py
0.239 KB
8 May 2024 6.34 PM
root / root
0644
_state.py
1.271 KB
8 May 2024 6.34 PM
root / root
0644
_types.py
0.436 KB
8 May 2024 6.34 PM
root / root
0644
effe.py
0.821 KB
8 May 2024 6.34 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF