diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2016-07-28 21:57:56 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2016-07-28 21:57:56 +0300 |
commit | 871a55bb4c80acfb62579a5da7235d800bcd7a90 (patch) | |
tree | ede7905fe1dab4068475e1c81ba2aa5bcdd52e53 /setup.py | |
parent | 86e0743ead0ee08bfd7a5ce32c5f76785d633117 (diff) | |
download | astroid-git-871a55bb4c80acfb62579a5da7235d800bcd7a90.tar.gz |
Try to patch special_attributes instead of returning a new node
It seems we have some problems with transforms that are creating new nodes.
While they work okay in most of the cases, we found a problem with regard
to pylint. For instance, if we recreate a function and return it
from a transform, pylint can see that we had two instances of the same
function in the module locals and will emit an error saying that the
function is redefined. In fact, the old node is still available
in the module locals, while it should have been replaced.
Unfortunately, there is not much we can do right now, instead of having
something as the zipper integrated.
This patch would fix the undefined-variable false positives we had in pylint.
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions