Render the module or stub file.
(ops_info: dict[str, list[OpsType]])
| 288 | |
| 289 | |
| 290 | def render(ops_info: dict[str, list[OpsType]]) -> Iterator[str]: |
| 291 | """Render the module or stub file.""" |
| 292 | yield MODULE_PREAMBLE |
| 293 | |
| 294 | for cls_name, method_blocks in ops_info.items(): |
| 295 | yield CLASS_PREAMBLE.format(cls_name=cls_name, newline="\n") |
| 296 | yield from _render_classbody(method_blocks) |
| 297 | |
| 298 | |
| 299 | def _render_classbody(method_blocks: list[OpsType]) -> Iterator[str]: |
no test coverage detected
searching dependent graphs…