pylint-bot / test

0 stars 0 forks source link

Improve assigned_stmts for Starred in For contexts #146

Open pylint-bot opened 9 years ago

pylint-bot commented 9 years ago

Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?)


We are currently ignoring Starred nodes in For contexts, as seen below:

#!python

from astroid.test_utils import *
n = extract_node('''
for a, *b in [(1, 2, 3), (4, 5, 6)]:
   b #@
''')
print(list(n.infer())) # Yields YES, not what we expected