Enclose a string with quotes
(content: Any)
| 230 | |
| 231 | |
| 232 | def enclose_string_with_quotes(content: Any) -> str: |
| 233 | """Enclose a string with quotes""" |
| 234 | if isinstance(content, numbers.Number): |
| 235 | return str(content) |
| 236 | content = str(content) |
| 237 | content = content.strip().strip("'").strip('"') |
| 238 | return f'"{content}"' |
| 239 | |
| 240 | |
| 241 | def list_of_list_to_csv(data: list[list]): |
no outgoing calls
no test coverage detected