Skip to content

Fix incorrect "unused 'type: ignore' comment" error log coloring #8248

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

Merged
merged 1 commit into from
Jan 6, 2020
Merged

Fix incorrect "unused 'type: ignore' comment" error log coloring #8248

merged 1 commit into from
Jan 6, 2020

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