MCPcopy Index your code
hub / github.com/pydata/xarray / render

Function render

xarray/util/generate_ops.py:290–296  ·  view source on GitHub ↗

Render the module or stub file.

(ops_info: dict[str, list[OpsType]])

Source from the content-addressed store, hash-verified

288
289
290def 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
299def _render_classbody(method_blocks: list[OpsType]) -> Iterator[str]:

Callers 1

generate_ops.pyFile · 0.85

Calls 3

_render_classbodyFunction · 0.85
itemsMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…