Skip to content

Add column offset to fix mypy linter pointing to wrong column number (off by one) - #15505

Merged
Kartik Raj (karrtikr) merged 4 commits into
microsoft:mainfrom
anttipessa:bug-fix-mypy
Mar 5, 2021
Merged

Kartik Raj (karrtikr) merged 4 commits into
microsoft:mainfrom
anttipessa:bug-fix-mypy

Conversation

@anttipessa

@anttipessa Antti Pessa (anttipessa) commented Feb 25, 2021 •

Copy link
Copy Markdown

Closes #14978
Before:
image

After:
image

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the fix. Please add a news item, and don't forget to credit yourself for the fix.

@ghost

Deleted user (ghost) commented Feb 25, 2021 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@karrtikr Kartik Raj (karrtikr) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks for the PR! Please edit the corresponding test,

const msg = parseLine(line, REGEX, LinterId.MyPy);

to pass column offset as 1 in parseLine.

@karrtikr

Copy link
Copy Markdown

The tests are failing, you may need to adjust the expected output.

@karrtikr Kartik Raj (karrtikr) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@karrtikr
Kartik Raj (karrtikr) merged commit fe94dda into microsoft:main Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants