Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
  • Loading branch information
jacobtylerwalls and Pierre-Sassoulas committed May 1, 2022
1 parent 5ac6687 commit f40bf86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pylint/checkers/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -2199,7 +2199,8 @@ def _loopvar_name(self, node: astroid.Name) -> None:
# the variable is not defined.
scope = node.scope()
# FunctionDef subclasses Lambda due to a curious ontology. Check both.
# See https://github.com/PyCQA/astroid/issues/291 (fix abandoned in a stale branch)
# See https://github.com/PyCQA/astroid/issues/291
# TODO: Revisit when astroid 3.0 includes the change
if isinstance(scope, nodes.Lambda) and any(
asmt.scope().parent_of(scope) for asmt in astmts
):
Expand Down

0 comments on commit f40bf86

Please sign in to comment.