-
-
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
Bug pylint 4122 #4304
Bug pylint 4122 #4304
Conversation
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.
Nice ! We could also change the code where we added a return None somewhere unreachable because of this pylint message. (The two unreachable code here : https://lgtm.com/projects/g/PyCQA/pylint/?mode=list)
This would be some real world test too :)
@Pierre-Sassoulas The two LGTM errors you mentioned can already be fixed. I'll open a MR shortly. |
@cdce8p @Pierre-Sassoulas thanks a lot! |
Steps
Description
This PR allows declaring a
never-returning-function
by just specifyingNoReturn
as a return type hint.Thus the emission of
inconsistent-return-statements
message won't be triggered if such functions are used.Type of Changes
Related Issue
Closes #4122
Closes #4188