Repository navigation
Commit 04563b6
committed
feat: Enable --pretty by default.
Change the default mypy output to be pretty-printed, providing users with more readable error messages that include code context out-of-the-box.
This commit implements the core logic for this feature:
- In 'mypy/options.py', the default value for 'pretty' is set to 'True'.
- In 'mypy/main.py', the command-line flags are reconfigured:
- '--no-pretty' is now the primary, user-facing flag to disable the pretty printing.
- The old '--pretty' flag is deprecated and hidden from help text to reflect that the pretty output is now default.
This change intentionally breaks the test suite, which will be fixediIn subsequent commits by adapting the test runners.
Part of python#191081 parent d528707 commit 04563b6
2 files changed
Lines changed: 13 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
991 | 991 | | |
992 | 992 | | |
993 | 993 | | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
1000 | | - | |
1001 | | - | |
1002 | 994 | | |
1003 | 995 | | |
1004 | 996 | | |
| |||
1026 | 1018 | | |
1027 | 1019 | | |
1028 | 1020 | | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
1029 | 1033 | | |
1030 | 1034 | | |
1031 | 1035 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| |||
0 commit comments