assignment-from-no-return
considers the wrong method if ambiguous
#1683
Labels
assignment-from-no-return
considers the wrong method if ambiguous
#1683
Steps to reproduce
Current behavior
Expected behavior
pylint --version output
pylint-dev/pylint@9a9de85 adds that check for methods and 2aa27e9 causes the first of the definitions to be the only one that gets returned from
infer_attribute
. ❎For ambiguous local functions,
infer_name
returns the correct definition. ✔️For ambiguous module functions,
infer_attribute
returns all definitions andsafe_infer
detects that ambiguity so that none of them get actually checked. ❎ (I'd consider that an issue as well but it only causes false negatives, so it's not a huge one).The text was updated successfully, but these errors were encountered: