MCPcopy Create free account
hub / github.com/KnowledgeXLab/LeanRAG / enclose_string_with_quotes

Function enclose_string_with_quotes

_cluster_utils.py:285–291  ·  view source on GitHub ↗

Enclose a string with quotes

(content: Any)

Source from the content-addressed store, hash-verified

283 return global_clusters
284
285def enclose_string_with_quotes(content: Any) -> str:
286 """Enclose a string with quotes"""
287 if isinstance(content, numbers.Number):
288 return str(content)
289 content = str(content)
290 content = content.strip().strip("'").strip('"')
291 return f'"{content}"'
292def list_of_list_to_csv(data: list[list]):
293 return "\n".join(
294 [

Callers 1

list_of_list_to_csvFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected