cell-var-from-loop false positive on lambda #9557
Labels
Duplicate 🐫
Duplicate of an already existing issue
False Positive 🦟
A message is emitted but nothing is wrong with the code
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Bug description
The cell-var-from-loop warning shows up on conditional use of SystemExit's code property. This appears similar to, but not the same as #5508, which appears specific to keyword arguments.
Given the following code, run pylint on it. Note the comment.
Configuration
No response
Command used
Pylint output
Expected behavior
No error
Pylint version
OS / Environment
Ubuntu 24.04, pylint installed via pip
Additional dependencies
pytest if you want to demonstrate that the code works as intended
The text was updated successfully, but these errors were encountered: