MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / trim_trailing_blank

Function trim_trailing_blank

scripts/prepare-release.py:153–157  ·  view source on GitHub ↗
(arr: list[str])

Source from the content-addressed store, hash-verified

151
152
153def trim_trailing_blank(arr: list[str]) -> list[str]:
154 i = len(arr)
155 while i > 0 and not arr[i - 1].strip():
156 i -= 1
157 return arr[:i]
158
159
160def append_link_ref(text: str, version: str) -> str:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected