Returns: True iff @string starts with three quotation characters.
(string: str)
| 36 | |
| 37 | |
| 38 | def has_triple_quotes(string: str) -> bool: |
| 39 | """ |
| 40 | Returns: |
| 41 | True iff @string starts with three quotation characters. |
| 42 | """ |
| 43 | raw_string = string.lstrip(STRING_PREFIX_CHARS) |
| 44 | return raw_string[:3] in {'"""', "'''"} |
| 45 | |
| 46 | |
| 47 | def lines_with_leading_tabs_expanded(s: str) -> list[str]: |
no outgoing calls
no test coverage detected
searching dependent graphs…