KEMBAR78
Fix incorrect "unused 'type: ignore' comment" error log coloring by TH3CHARLie · Pull Request #8248 · python/mypy · GitHub
Skip to content

Conversation

TH3CHARLie
Copy link
Collaborator

fixes #8242

Original error code indexing is assuming all `msg's included a '[', which clearly fails on "unused 'type: ignore' comment", this PR provides correct string finding and substring indexing thus a correct colorization.

However, it also seems meaningful to add an error code for this error. Suggestions are welcomed.

Copy link
Collaborator

@msullivan msullivan left a comment

Choose a reason for hiding this comment

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

Thanks!

@msullivan msullivan merged commit 7c5e69b into python:master Jan 6, 2020
@TH3CHARLie TH3CHARLie deleted the fix-8242 branch January 7, 2020 02:23
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.

Unused type: ignore error log coloring bug when using show-error-codes

2 participants