From 8d9ffc19d24734543bcbb90f301f6cd7497d5910 Mon Sep 17 00:00:00 2001 From: mkaraev Date: Wed, 21 May 2025 11:48:24 +0500 Subject: [PATCH 1/2] enable --pretty by default --- mypy/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mypy/main.py b/mypy/main.py index 6ebf32ded6e1..bae5e02cc370 100644 --- a/mypy/main.py +++ b/mypy/main.py @@ -992,7 +992,7 @@ def add_invertible_flag( ) add_invertible_flag( "--pretty", - default=False, + default=True, help="Use visually nicer output in error messages:" " Use soft word wrap, show source code snippets," " and show error location markers", From e88c8d98afe8785a82158884c34417020a1c5eb4 Mon Sep 17 00:00:00 2001 From: mkaraev Date: Fri, 23 May 2025 23:07:00 +0500 Subject: [PATCH 2/2] enable --pretty by default --- mypy/main.py | 3 ++- mypy/options.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mypy/main.py b/mypy/main.py index bae5e02cc370..96c845435a8e 100644 --- a/mypy/main.py +++ b/mypy/main.py @@ -991,7 +991,8 @@ def add_invertible_flag( group=error_group, ) add_invertible_flag( - "--pretty", + "--no-pretty", + dest="pretty", default=True, help="Use visually nicer output in error messages:" " Use soft word wrap, show source code snippets," diff --git a/mypy/options.py b/mypy/options.py index 52afd27211ed..57a424f73888 100644 --- a/mypy/options.py +++ b/mypy/options.py @@ -356,7 +356,7 @@ def __init__(self) -> None: self.hide_error_codes = False self.show_error_code_links = False # Use soft word wrap and show trimmed source snippets with error location markers. - self.pretty = False + self.pretty = True self.dump_graph = False self.dump_deps = False self.logical_deps = False