pylint-dev / pylint-dev/astroid

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

Open
#136 0 comments 0 reactions 0 assignees View on GitHub
Bug 🪳
Dominant language
Python
Stars
582
Forks
357
Avg merge
1d 1h
Merged PRs (30d)
23

Description

Originally reported by: **Claudiu Popa (BitBucket: [PCManticore](http://bitbucket.org/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.

---
- Bitbucket: https://bitbucket.org/logilab/astroid/issue/136

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.