@@ -1303,13 +1303,15 @@ def generate_object_type_toplevel_definitions(model: Model) -> str:
13031303 cprefix = otype .c_symbol_prefix
13041304
13051305 if otype .name == "Object" :
1306- defs .append (f"""PYFRIDA_DEFINE_BASETYPE ("_frida.{ otype .py_name } ", { otype .py_name } , g_object_unref,
1306+ defs .append (
1307+ f"""PYFRIDA_DEFINE_BASETYPE ("_frida.{ otype .py_name } ", { otype .py_name } , g_object_unref,
13071308 {{ Py_tp_doc, "{ otype .name } " }},
13081309 {{ Py_tp_init, { cprefix } _init }},
13091310 {{ Py_tp_dealloc, { cprefix } _dealloc }},
13101311 {{ Py_tp_methods, { cprefix } _methods }},
13111312 {{ Py_tp_getset, { cprefix } _getsets }},
1312- );""" )
1313+ );"""
1314+ )
13131315 continue
13141316
13151317 parent = otype .parent
@@ -1329,12 +1331,14 @@ def generate_object_type_toplevel_definitions(model: Model) -> str:
13291331 )
13301332 continue
13311333
1332- defs .append (f"""PYFRIDA_DEFINE_TYPE ("_frida.{ otype .py_name } ", { otype .py_name } , { parent_name } , g_object_unref,
1334+ defs .append (
1335+ f"""PYFRIDA_DEFINE_TYPE ("_frida.{ otype .py_name } ", { otype .py_name } , { parent_name } , g_object_unref,
13331336 {{ Py_tp_doc, "{ otype .name } " }},
13341337 {{ Py_tp_init, { cprefix } _init }},
13351338 {{ Py_tp_methods, { cprefix } _methods }},
13361339 {{ Py_tp_getset, { cprefix } _getsets }},
1337- );""" )
1340+ );"""
1341+ )
13381342
13391343 return "\n \n " .join (defs )
13401344
@@ -2764,10 +2768,12 @@ def generate_object_type_structs(model: Model) -> str:
27642768 for otype in model .regular_object_types :
27652769 if otype .name == "Object" :
27662770 continue
2767- structs .append (f"""struct _{ otype .c_symbol_prefix }
2771+ structs .append (
2772+ f"""struct _{ otype .c_symbol_prefix }
27682773{{
27692774 { otype .parent_c_symbol_prefix } parent;
2770- }};""" )
2775+ }};"""
2776+ )
27712777
27722778 return "\n \n " .join (structs )
27732779
0 commit comments