summaryrefslogtreecommitdiff
path: root/tests/functional/c/consider/consider_using_set_comprehension.py
blob: 345989c69dd7ad26150ad04d9e415369f8febcdb (plain)
1
2
3
4
5
6
7
8
9
# pylint: disable=missing-docstring, invalid-name, unnecessary-comprehension

numbers = [1, 2, 3, 4, 5, 6]

set()

set([])

set([number for number in numbers])  # [consider-using-set-comprehension]