MCPcopy
hub / github.com/pydata/xarray / summarize_attrs

Function summarize_attrs

xarray/core/formatting_html.py:67–73  ·  view source on GitHub ↗
(attrs)

Source from the content-addressed store, hash-verified

65
66
67def summarize_attrs(attrs) -> str:
68 attrs_dl = "".join(
69 f"<dt><span>{escape(str(k))} :</span></dt><dd>{escape(str(v))}</dd>"
70 for k, v in attrs.items()
71 )
72
73 return f"<dl class='xr-attrs'>{attrs_dl}</dl>"
74
75
76def _icon(icon_name) -> str:

Callers 1

summarize_variableFunction · 0.85

Calls 2

itemsMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…