(cl: ClassIR)
| 1293 | |
| 1294 | |
| 1295 | def native_class_doc_initializer(cl: ClassIR) -> str: |
| 1296 | init_fn = cl.get_method("__init__") |
| 1297 | if init_fn is not None: |
| 1298 | text_sig = get_text_signature(init_fn, bound=True) |
| 1299 | if text_sig is None: |
| 1300 | return "NULL" |
| 1301 | text_sig = text_sig.replace("__init__", cl.name, 1) |
| 1302 | else: |
| 1303 | text_sig = f"{cl.name}()" |
| 1304 | docstring = f"{text_sig}\n--\n\n" |
| 1305 | return c_string_initializer(docstring.encode("ascii", errors="backslashreplace")) |
| 1306 | |
| 1307 | |
| 1308 | def generate_coroutine_setup( |
no test coverage detected
searching dependent graphs…