def is_thunk(cls, func): '''Return True if the function ``func`` is considered a code thunk.''' fn = by(func) return fn.flags & idaapi.FUNC_THUNK == idaapi.FUNC_THUNK