MCPcopy Index your code
hub / github.com/RustPython/RustPython / _format_meta_suffix

Function _format_meta_suffix

scripts/update_lib/cmd_todo.py:383–392  ·  view source on GitHub ↗

Format metadata suffix (last updated date and diff count).

(item: dict)

Source from the content-addressed store, hash-verified

381
382
383def _format_meta_suffix(item: dict) -> str:
384 """Format metadata suffix (last updated date and diff count)."""
385 parts = []
386 last_updated = item.get("last_updated")
387 diff_lines = item.get("diff_lines", 0)
388 if last_updated:
389 parts.append(last_updated)
390 if diff_lines > 0:
391 parts.append(f"Δ{diff_lines}")
392 return f" | {' '.join(parts)}" if parts else ""
393
394
395def _format_test_suffix(item: dict) -> str:

Callers 2

format_test_todo_listFunction · 0.85
format_todo_listFunction · 0.85

Calls 3

getMethod · 0.45
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected