diff options
author | Dmitry Pribysh <dmand@yandex.ru> | 2015-10-27 18:03:15 +0300 |
---|---|---|
committer | Dmitry Pribysh <dmand@yandex.ru> | 2015-10-27 18:03:15 +0300 |
commit | db975e2a316d41d52b46e0f7dcdcd2182530c213 (patch) | |
tree | 1d4ae8186073927c337f56babbf6ffd2bc1cb942 /pylint/checkers/classes.py | |
parent | 2dc6bd120c119b614018bca22ef96ff497ff5102 (diff) | |
download | pylint-git-db975e2a316d41d52b46e0f7dcdcd2182530c213.tar.gz |
Make iterable checker skip classes that are inferred to be abstract
--HG--
branch : fix-685
Diffstat (limited to 'pylint/checkers/classes.py')
-rw-r--r-- | pylint/checkers/classes.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/pylint/checkers/classes.py b/pylint/checkers/classes.py index 86ccb1931..c65e10c7d 100644 --- a/pylint/checkers/classes.py +++ b/pylint/checkers/classes.py @@ -34,7 +34,7 @@ from pylint.checkers.utils import ( overrides_a_method, check_messages, is_attr_private, is_attr_protected, node_frame_class, is_builtin_object, decorated_with_property, unimplemented_abstract_methods, - decorated_with) + decorated_with, class_is_abstract) from pylint.utils import deprecated_option, get_global_option import six @@ -102,15 +102,6 @@ def _called_in_methods(func, klass, methods): return True return False -def class_is_abstract(node): - """return true if the given class node should be considered as an abstract - class - """ - for method in node.methods(): - if method.parent.frame() is node: - if method.is_abstract(pass_is_abstract=False): - return True - return False def _is_attribute_property(name, klass): """ Check if the given attribute *name* is a property |