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

Function prefixes

xarray/core/formatting.py:525–529  ·  view source on GitHub ↗
(length: int)

Source from the content-addressed store, hash-verified

523 max_width = OPTIONS["display_width"]
524
525 def prefixes(length: int) -> list[str]:
526 if length in (0, 1):
527 return [" "]
528
529 return ["┌"] + ["│"] * max(length - 2, 0) + ["└"]
530
531 preformatted = [
532 pretty_print(f" {prefix} {name}", col_width)

Callers 1

summarize_indexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…