summaryrefslogtreecommitdiff
path: root/tests/functional/t/too/too_many_star_expressions.py
blob: c1bbfb9d32354b1827ba75fc34bd7e75d3cbd5c1 (plain)
1
2
3
4
5
6
7
"""Test for too-many-star-expressions."""
# pylint: disable=unbalanced-tuple-unpacking
*FIRST, *SECOND = [1, 2, 3] # [too-many-star-expressions]
(FIRST, *SECOND), *THIRD = ((1, 2, 3), 4, 5)
*FIRST_1, SECOND = (1, 2, 3)
(*FIRST, *SECOND), THIRD = [...]  # [too-many-star-expressions]
((*FIRST, SECOND), *THIRD), *FOURTH = [...]