Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Shorter reporting (i.e. don't highlight entire functions for certain errors)#17203

Draft
shaperilio wants to merge 3 commits intopython:masterfrom
shaperilio:shorter-reporting
Draft

Shorter reporting (i.e. don't highlight entire functions for certain errors)#17203
shaperilio wants to merge 3 commits intopython:masterfrom
shaperilio:shorter-reporting

Conversation

@shaperilio
Copy link
Copy Markdown

This pertains to #16746, and is a work in progress. Most likely, I'll work into #17006 instead. But since it's been a while, I wanted to have this here to comment on what I learned.

The goal is to avoid highlighting entire functions as the error for things like missing return statement, forgotten self, etc. I'm not sure we have an exhaustive list of the errors which do this, but perhaps we can find an approach where the entire function is never highlighted as an error.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2024

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

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.

1 participant