-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix(inconsistent-return-statements): Fix false positive due to pylint not seeing that a method returns NoReturn
#8750
Conversation
β¦ions when checking if returns `NoReturn`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thank you for contributing !
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #8750 +/- ##
=======================================
Coverage 95.82% 95.82%
=======================================
Files 173 173
Lines 18386 18387 +1
=======================================
+ Hits 17618 17619 +1
Misses 768 768
|
This comment has been minimized.
This comment has been minimized.
β¦nction signature claims NoReturn but body returns
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great first contribution, I think it's fine to merge and backport considering the check is not using inference like we expect most of our checks to do, but ti's a pre-existing caveat. Let's see what others thinks
This comment has been minimized.
This comment has been minimized.
tests/functional/i/inconsistent/inconsistent_returns_noreturn.py
Outdated
Show resolved
Hide resolved
β¦on't document as false negative
tests/functional/i/inconsistent/inconsistent_returns_noreturn.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
(The documentation check failure is unrelated; I'll look into it.) |
π€ According to the primer, this change has no effect on the checked open source code. π€π This comment was generated for commit d9738b7 |
β¦`NoReturn` (#8750) (#8761) Allow inspection of BoundMethod when checking if annotated as NoReturn (cherry picked from commit 8614ccf) Co-authored-by: kdestin <[email protected]>
Type of Changes
Description
Closes #8747