False-positive unreachable
code for empty generator
#4698
Labels
False Positive 🦟
A message is emitted but nothing is wrong with the code
Milestone
The most efficient way to create a empty generator is to add
yield
afterreturn
.pylint
should not add the warningunreachable
code for it. https://stackoverflow.com/a/61496399Steps to reproduce
Current behavior
Expected behavior
No warning
pylint --version output
The text was updated successfully, but these errors were encountered: