MCPcopy Create free account
hub / github.com/PyCQA/flake8 / is_multiline_string

Function is_multiline_string

src/flake8/processor.py:394–398  ·  view source on GitHub ↗

Check if this is a multiline string.

(token: tokenize.TokenInfo)

Source from the content-addressed store, hash-verified

392
393
394def 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
401def token_is_newline(token: tokenize.TokenInfo) -> bool:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected