diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-01-15 22:24:16 +0200 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-01-15 22:24:16 +0200 |
commit | 128d412092de096691be410c0cf2147855937a8a (patch) | |
tree | c008e528a9fa8bc2d825f42a41ec1a3b71692fd5 | |
parent | b2a6e09c84540e0d257d17df2a376d5a67d3046f (diff) | |
download | pylint-128d412092de096691be410c0cf2147855937a8a.tar.gz |
Suppress ResolveErrors from Class.mro in unimplemented_abstract_methods.
-rw-r--r-- | checkers/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/checkers/utils.py b/checkers/utils.py index 2df59e1..2cb01d5 100644 --- a/checkers/utils.py +++ b/checkers/utils.py @@ -533,6 +533,10 @@ def unimplemented_abstract_methods(node, is_abstract_cb=decorated_with_abc): except NotImplementedError: # Old style class, it will not have a mro. return {} + except astroid.ResolveError: + # Probably inconsistent hierarchy, don'try + # to figure this out here. + return {} for ancestor in mro: for obj in ancestor.values(): infered = obj |