Enclose a string with quotes
(content: Any)
| 283 | return global_clusters |
| 284 | |
| 285 | def 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}"' |
| 292 | def list_of_list_to_csv(data: list[list]): |
| 293 | return "\n".join( |
| 294 | [ |
no outgoing calls
no test coverage detected