Skip to content

Respect JSON output mode for syntax errors#21386

Merged
hauntsaninja merged 2 commits intopython:masterfrom
AA-Turner:json-syntax-errors
May 1, 2026
Merged

Respect JSON output mode for syntax errors#21386
hauntsaninja merged 2 commits intopython:masterfrom
AA-Turner:json-syntax-errors

Conversation

@AA-Turner
Copy link
Copy Markdown
Member

Fixes #21370.

A

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2026

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

Comment thread test-data/unit/outputjson.test
Copy link
Copy Markdown
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hauntsaninja hauntsaninja merged commit eb0caa1 into python:master May 1, 2026
24 checks passed
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.

Syntax errors are not emitted in JSON format when using --output=json

3 participants