diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2018-05-26 08:22:50 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-05-26 08:22:50 +0200 |
commit | 253903864cf80ba25476b1b6e3cbccba1016147b (patch) | |
tree | 5b5edfcf924289f00b574892e51fdae6656dadaf /astroid/modutils.py | |
parent | e5ab6340d15d6edd6885aa6513af8513adae8a80 (diff) | |
download | astroid-git-253903864cf80ba25476b1b6e3cbccba1016147b.tar.gz |
Protect against passing lookup_class to non-class proxied objects
In some cases the _proxied object points to another Instance, not to the
Class of an Instance node (usually this happens with enum and with our hardcoded inference support
for this library). Instead of getting a TypeError, we check before if the _proxied matches
what we expect.
Found by #2080
Diffstat (limited to 'astroid/modutils.py')
0 files changed, 0 insertions, 0 deletions