Enclose a string with quotes
(content: Any)
| 186 | |
| 187 | |
| 188 | def enclose_string_with_quotes(content: Any) -> str: |
| 189 | """Enclose a string with quotes""" |
| 190 | if isinstance(content, numbers.Number): |
| 191 | return str(content) |
| 192 | content = str(content) |
| 193 | content = content.strip().strip("'").strip('"') |
| 194 | return f'"{content}"' |
| 195 | |
| 196 | |
| 197 | def list_of_list_to_csv(data: list[list]): |
no outgoing calls
no test coverage detected