Skip to content

Enable --pretty by default #19380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

victorletichevsky
Copy link

This pull request implements the changes proposed in #19108 by enabling the --pretty flag by default.

This flag improves the readability of error messages by including code snippets and visual markers, such as carets pointing to the exact location of the error. Making this the default helps improve the experience for both new and experienced users.

Changes included

  • Sets --pretty = True as the default behavior in CLI options.
  • Updates the test infrastructure to preserve expected outputs.

Let me know if any further adjustments are needed.

Copy link
Contributor

github-actions bot commented Jul 5, 2025

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant