summaryrefslogtreecommitdiff
path: root/tests/functional/c/consider/consider_using_generator.py
blob: eadb34a56a5573c6182ad1cb9655ee934f31060a (plain)
1
2
3
4
5
6
7
8
9
10
11
# pylint: disable=missing-docstring, invalid-name
# https://github.com/PyCQA/pylint/issues/3165

list([])
tuple([])

list([0 for y in list(range(10))]) # [consider-using-generator]
tuple([0 for y in list(range(10))]) # [consider-using-generator]

list(0 for y in list(range(10)))
tuple(0 for y in list(range(10)))