Commit 2c6c395
authored
Make --pretty work better on multi-line issues (#20056)
We can just print the first line for things where there's multiple lines
being the issue. Ideally, we would print the first line, last line, and
explicitly elide the lines in between. That's for a future change!
(maybe)
Fixes #18522.
NOTE: this is an aesthetic thing, there's no right formatting. So I
would be fine if this is closed because others think it looks worse.1 parent 94d0d7e commit 2c6c395
File tree
3 files changed
+15
-1
lines changed- mypy
- test-data/unit
3 files changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1003 | 1003 | | |
1004 | 1004 | | |
1005 | 1005 | | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
1006 | 1009 | | |
1007 | 1010 | | |
1008 | 1011 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1619 | 1619 | | |
1620 | 1620 | | |
1621 | 1621 | | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
0 commit comments