@@ -1316,13 +1316,15 @@ def generate_object_type_toplevel_definitions(model: Model) -> str:
13161316 cprefix = otype .c_symbol_prefix
13171317
13181318 if otype .name == "Object" :
1319- defs .append (f"""PYFRIDA_DEFINE_BASETYPE ("_frida.{ otype .py_name } ", { otype .py_name } , g_object_unref,
1319+ defs .append (
1320+ f"""PYFRIDA_DEFINE_BASETYPE ("_frida.{ otype .py_name } ", { otype .py_name } , g_object_unref,
13201321 {{ Py_tp_doc, "{ otype .name } " }},
13211322 {{ Py_tp_init, { cprefix } _init }},
13221323 {{ Py_tp_dealloc, { cprefix } _dealloc }},
13231324 {{ Py_tp_methods, { cprefix } _methods }},
13241325 {{ Py_tp_getset, { cprefix } _getsets }},
1325- );""" )
1326+ );"""
1327+ )
13261328 continue
13271329
13281330 parent = otype .parent
@@ -1342,12 +1344,14 @@ def generate_object_type_toplevel_definitions(model: Model) -> str:
13421344 )
13431345 continue
13441346
1345- defs .append (f"""PYFRIDA_DEFINE_TYPE ("_frida.{ otype .py_name } ", { otype .py_name } , { parent_name } , g_object_unref,
1347+ defs .append (
1348+ f"""PYFRIDA_DEFINE_TYPE ("_frida.{ otype .py_name } ", { otype .py_name } , { parent_name } , g_object_unref,
13461349 {{ Py_tp_doc, "{ otype .name } " }},
13471350 {{ Py_tp_init, { cprefix } _init }},
13481351 {{ Py_tp_methods, { cprefix } _methods }},
13491352 {{ Py_tp_getset, { cprefix } _getsets }},
1350- );""" )
1353+ );"""
1354+ )
13511355
13521356 return "\n \n " .join (defs )
13531357
@@ -2735,10 +2739,12 @@ def generate_object_type_structs(model: Model) -> str:
27352739 for otype in model .regular_object_types :
27362740 if otype .name == "Object" :
27372741 continue
2738- structs .append (f"""struct _{ otype .c_symbol_prefix }
2742+ structs .append (
2743+ f"""struct _{ otype .c_symbol_prefix }
27392744{{
27402745 { otype .parent_c_symbol_prefix } parent;
2741- }};""" )
2746+ }};"""
2747+ )
27422748
27432749 return "\n \n " .join (structs )
27442750
0 commit comments