Beispiel #1
0
def ismethod(object):
    """Decorator-aware replacement for ``inspect.ismethod``."""
    return _inspect.ismethod(decorator.unwrap(object)[1])
Beispiel #2
0
def isclass(object):
    """Decorator-aware replacement for ``inspect.isclass``."""
    return _inspect.isclass(decorator.unwrap(object)[1])
Beispiel #3
0
def isfunction(object):
    """Decorator-aware replacement for ``inspect.isfunction``."""
    return _inspect.isfunction(decorator.unwrap(object)[1])
Beispiel #4
0
def getfullargspec(obj):
    """Decorator-aware replacement for ``inspect.getfullargspec``."""
    _, target = decorator.unwrap(obj)
    return _getfullargspec(target)