Files
openide/python/testData/highlighting/unpackingStar.py
Mikhail Golubev 5c9ec47997 PY-35961 Report missing parentheses in return/yield depending on language version
Previously it was done unconditionally for all Python versions in StarAnnotator.
I moved the corresponding checks from there to CompatibilityVisitor so that
it was clear in which particular versions it's mandatory.

GitOrigin-RevId: 205de8768431445baed98aecd5f9820efe28d281
2019-10-14 17:02:52 +00:00

11 lines
181 B
Python

1, *x
(1, *x)
[1, *x]
{1, *x}
if <error descr="Can't use starred expression here">*x</error>:
pass
1 + (<error descr="Can't use starred expression here">*x</error>)
1 + (*x,)