Check if this is a multiline string.
(token: tokenize.TokenInfo)
| 392 | |
| 393 | |
| 394 | def is_multiline_string(token: tokenize.TokenInfo) -> bool: |
| 395 | """Check if this is a multiline string.""" |
| 396 | return token.type in {FSTRING_END, TSTRING_END} or ( |
| 397 | token.type == tokenize.STRING and "\n" in token.string |
| 398 | ) |
| 399 | |
| 400 | |
| 401 | def token_is_newline(token: tokenize.TokenInfo) -> bool: |
nothing calls this directly
no outgoing calls
no test coverage detected