stop-iteration-return
false positive when using itertools.cycle
#7765
Labels
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
Milestone
Bug description
Running pylint on this code gives a false positive:
This is similar to #2158 which was fixed by adding a list of known infinite iterators.
Configuration
No response
Command used
Pylint output
Expected behavior
No warning, because
cycle
repeats indefinitely.Pylint version
OS / Environment
Ubuntu 22.10
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: