-
-
Notifications
You must be signed in to change notification settings - Fork 3k
--color-output
doesn't work
#18746
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
Comments
This is expected behavior (similar to many other CLI tools btw). By default |
@ilevkivskyi To me the docstring was suggestion something else, but yes it is not very clear:
To me the inverse of forcing color off would be forcing color on. Also just, the imperative wording "color output" very much sounds like "force" to me. I'm literally telling mypy to color the output, not This raises the question what effect My expectation was that Should I instead open a feature request for that? |
I agree. Supplying |
Uh oh!
There was an error while loading. Please reload this page.
Bug Report
Using
mypy --color-output
does not seem to have any effect.To Reproduce
Expected Behavior
This should produce a colored output, because
--color-output
suggests that colors are enforced. It should look like this (if I omit the| cat
):Actual Behavior
Output is not colored.
Your Environment
--color-output
mypy.ini
(and other config files): noneMay have a similar cause as #13817. EDIT: actually, I no longer think so because
FORCE_COLOR
andMYPY_FORCE_COLOR
works under _some_conditions (if the check I've mentioned there passes, which is not the case in e.g. GitHub or Gitlab), but--color-output
never seems to have an effect for me.The text was updated successfully, but these errors were encountered: