use-implicit-booleaness-not-len [C1802]
should not be emitted for generators
#10100
Labels
False Positive 🦟
A message is emitted but nothing is wrong with the code
Good first issue
Friendly and approachable by new contributors
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Bug description
Command used
Pylint output
Expected behavior
No lint emitted. This should be a different error -
len
is not defined for generators in the first place. Notice, for example, that no lint is emitted for length used as condition with other standard Python objects that do not admit lengths (e.g. lambda expressions or functions).Pylint version
The text was updated successfully, but these errors were encountered: