Turn show_warning_types
on by default
#12597
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In #12131 I added the
show_warning_types
, to show the warning type/subtype.As I explained there, I think this is very helpful for helping users understand the source of the warning and understand how to suppress it if desired,
and also it is inline with the tools in the Python ecosystem (mypy, ruff, pylint, ...)
As per python/mypy#13542, here I am advocating for making this on by default.
I feel that although it was a good step to add the functionality, still most users will not realise it is possible and there is no real downside to having this on by default