summaryrefslogtreecommitdiff
path: root/pylint/checkers/variables.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/checkers/variables.py')
-rw-r--r--pylint/checkers/variables.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/pylint/checkers/variables.py b/pylint/checkers/variables.py
index 40fc99b63..8e2f86839 100644
--- a/pylint/checkers/variables.py
+++ b/pylint/checkers/variables.py
@@ -1402,10 +1402,6 @@ class VariablesChecker(BaseChecker):
"used-before-assignment", args=node.name, node=node
)
- elif current_consumer.scope_type == "lambda":
- self.add_message("undefined-variable", args=node.name, node=node)
- return (VariableVisitConsumerAction.CONSUME, found_nodes)
-
elif self._is_only_type_assignment(node, defstmt):
self.add_message("undefined-variable", args=node.name, node=node)
return (VariableVisitConsumerAction.CONSUME, found_nodes)