Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Make --show-traceback the default and add --no-show-traceback
Fixes: #21360
Signed-off-by: Matěj Cepl <mcepl@cepl.eu>
  • Loading branch information
mcepl committed Apr 28, 2026
commit e05d4784707a21755acd4facb5d1423c42e05de6
7 changes: 5 additions & 2 deletions mypy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1118,8 +1118,11 @@ def add_invertible_flag(
title="Advanced options", description="Debug and customize mypy internals."
)
internals_group.add_argument("--pdb", action="store_true", help="Invoke pdb on fatal error")
internals_group.add_argument(
"--show-traceback", "--tb", action="store_true", help="Show traceback on fatal error"
add_invertible_flag(
"--show-traceback",
default=True,
help="Show traceback on fatal error",
group=internals_group,
)
internals_group.add_argument(
"--raise-exceptions", action="store_true", help="Raise exception on fatal error"
Expand Down
Loading