Return True if `leaf` is a multiline string that actually spans many lines.
(node: LN)
| 824 | |
| 825 | |
| 826 | def is_multiline_string(node: LN) -> bool: |
| 827 | """Return True if `leaf` is a multiline string that actually spans many lines.""" |
| 828 | if isinstance(node, Node) and is_fstring(node): |
| 829 | leaf = fstring_tstring_to_string(node) |
| 830 | elif isinstance(node, Leaf): |
| 831 | leaf = node |
| 832 | else: |
| 833 | return False |
| 834 | |
| 835 | return has_triple_quotes(leaf.value) and "\n" in leaf.value |
| 836 | |
| 837 | |
| 838 | def is_parent_function_or_class(node: Node) -> bool: |
no test coverage detected