| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅ |
Sorry, something went wrong.
|
As per our policy we don't accept LLM generated PRs from new contributors. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #21376
This makes output = json in mypy.ini take effect by registering output as a string-valued config option. Options.output defaults to None, so without an explicit config parser type entry it was treated as unrecognized and ignored.
This is intentionally the narrow version of the fix: it does not change the general handling of all None-default options.
I also added a config parser unit test that parses a temporary mypy.ini with output = json and verifies Options.output is set without stderr output.
Validation:
Note: this replaces #21416, which I could not reopen after cleaning up the branch history.