summaryrefslogtreecommitdiff
path: root/astroid/modutils.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2018-05-26 08:22:50 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2018-05-26 08:22:50 +0200
commit253903864cf80ba25476b1b6e3cbccba1016147b (patch)
tree5b5edfcf924289f00b574892e51fdae6656dadaf /astroid/modutils.py
parente5ab6340d15d6edd6885aa6513af8513adae8a80 (diff)
downloadastroid-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