consider-using-any-or-all / C0501#

Message emitted:

for loop could be %s


A for loop that checks for a condition and return a bool can be replaced with any or all.

Correct code:

# This is a placeholder for correct code for this message.

Additional details:

You can help us make the doc better by contributing !


This message is emitted by the optional 'consider-using-any-or-all' checker which requires the pylint.extensions.for_any_all plugin to be loaded.

Created by the consider-using-any-or-all checker.