summaryrefslogtreecommitdiff
path: root/tests/functional/u/use/use_a_generator.py
blob: 6327eb1a21b71472785972b48830a07bbaefb2ae (plain)
1
2
3
4
5
6
7
8
9
10
11
# pylint: disable=missing-docstring, invalid-name
# https://github.com/pylint-dev/pylint/issues/3165

any([])
all([])

any([0 for x in list(range(10))]) # [use-a-generator]
all([0 for y in list(range(10))]) # [use-a-generator]

any(0 for x in list(range(10)))
all(0 for y in list(range(10)))