inference_schema/schema_util.py
def _get_decorators(func):
    """
    Gets a list if decorators applied to a function

    :param func:
    :type func: function | FunctionWrapper
    :return:
    :rtype: list
    """

    dec = []
    if not func.__closure__:
        return [func]
    if hasattr(func, '__closure__'):
        for closure in func.__closure__:
            dec.extend(_get_decorators(closure.cell_contents))
    return [func] + dec

    Gets a list if decorators applied to a function

    :param func:
    :type func: function | FunctionWrapper
    :return:
    :rtype: list
    
Gets a list if decorators applied to a function
Gets a list if decorators applied to a function
def _get_decorators(func):
    dec = []
    if not func.__closure__:
        return [func]
    if hasattr(func, '__closure__'):
        for closure in func.__closure__:
            dec.extend(_get_decorators(closure.cell_contents))
    return [func] + dec
def _get_decorators ( func ) : dec = [ ] if not func . __closure__ : return [ func ] if hasattr ( func , '__closure__' ) : for closure in func . __closure__ : dec . extend ( _get_decorators ( closure . cell_contents ) ) return [ func ] + dec
Gets a list if decorators applied to a function
Gets a list if decorators applied to a function
"""
    Gets a list if decorators applied to a function

    :param func:
    :type func: function | FunctionWrapper
    :return:
    :rtype: list
    """
None
list
func
None