-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
Many development tools use color in their output these days, and I think that it's time that mypy did that as well. Arguments for using colors:
- It's faster to scan error messages to find the relevant part.
- Colored messages may subjectively feel/look better even if there is no concrete utility.
- This is becoming a standard, like it or not.
My personal preference is to not go overboard and to use colors in a somewhat restrained manner. Also, I'd prefer to mostly stick to a few colors instead of using all the colors available.
There should be an option to explicitly disable colors. We may also want to disable colors automatically if the output is piped to another process. If we do this, we'd probably need an option to also force colors to be used.
(Originally discussed in #3439 but moved to a separate issue.)