MCPcopy Create free account
hub / github.com/apple/axlearn / _add_to_csv

Function _add_to_csv

axlearn/cli/utils.py:248–252  ·  view source on GitHub ↗

Adds a string to a comma-separated string of items.

(csv: str, item: str)

Source from the content-addressed store, hash-verified

246
247
248def _add_to_csv(csv: str, item: str) -> str:
249 """Adds a string to a comma-separated string of items."""
250 items = csv.split(",") if csv else []
251 items.append(item)
252 return ",".join(items)
253
254
255def _argname(arg: str) -> str:

Callers 1

add_flagMethod · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected