def short_description(description):
    """
    Sets 'short_description' attribute (this attribute is in exports to generate header name).
    """
    def decorator(func):
        if isinstance(func, property):
            func = func.fget
        func.short_description = description
        return func
    return decorator
def short_description ( description ) : def decorator ( func ) : if isinstance ( func , property ) : func = func . fget func . short_description = description return func return decorator
Sets 'short_description' attribute (this attribute is in exports to generate header name).