-
-
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 undefined-loop-variable
with NoReturn
and Never
#7476
Fix undefined-loop-variable
with NoReturn
and Never
#7476
Conversation
return | ||
): | ||
return | ||
# TODO: 2.16: Consider using RefactoringChecker._is_function_def_never_returning |
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.
This function doesn't actually infer but uses the attrname
, which we also match not_typing.we_do_return.NoReturn
. That isn't really safe..
undefined-loop-variable
with NoReturn
and Never
This comment has been minimized.
This comment has been minimized.
undefined-loop-variable
with NoReturn
and Never
undefined-loop-variable
with NoReturn
and Never
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
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 good!
This comment has been minimized.
This comment has been minimized.
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.
👍
Do you know what's up with the test failure? |
Probably incorrect checking of |
370ec10
Pull Request Test Coverage Report for Build 3080932997
💛 - Coveralls |
🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉 This comment was generated for commit 370ec10 |
|
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.
Let's ship it 🎉
…#7476) Co-authored-by: detachhead <detachhead@users.noreply.github.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
towncrier create <IssueNumber>.<type>
which will beincluded in the changelog.
<type>
can be one of: new_check, removed_check, extension,false_positive, false_negative, bugfix, other, internal. If necessary you can write
details or offer examples on how the new change is supposed to work.
and preferred name in
script/.contributors_aliases.json
Type of Changes
Description
Continuation of #7419
@DetachHead Sorry not sure what went wrong here. I tried to push my fix to your branch but it closed the PR... Sorry about that!
This should work 😄
Tested on 3.11 locally as well.
Closes #7311