def GetFunctionFlags(ea):
    func = idaapi.get_func(ea)

    if not func:
        return -1
    else:
        return func.flags
Retrieve function flags
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/GetFunctionFlags