We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b18f58 commit 8a1920eCopy full SHA for 8a1920e
typing_validation/validation_failure.py
@@ -35,8 +35,9 @@
35
36
37
def _indent_lines(lines: Sequence[str], level: int = 1) -> list[str]:
38
- """Indent all given blocks of text (no newlines)."""
39
- assert not any("\n" in line for line in lines)
+ """Indent all given blocks of text."""
+ if any("\n" in line for line in lines):
40
+ lines = [l for line in lines for l in line.split("\n")]
41
ind = " " * 2 * level
42
return [ind + line for line in lines]
43
0 commit comments