pylint-bot / test

0 stars 0 forks source link

Replace next(node.infer()) calls with iteration over the all results of node.infer() #136

Open pylint-bot opened 9 years ago

pylint-bot commented 9 years ago

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


node.infer() returns a generator of inferred statements, but there are a lot of places where only the first value is retrieved and operated with. This is wrong, because it doesn't reflect the whole reality of the inference.