diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-07-26 11:57:30 +0300 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-07-26 11:57:30 +0300 |
commit | cff9ac71dcab7c803eaeca080c829842c6e433d2 (patch) | |
tree | ba0fe8df4bafa3469f2e611795235305a9859c49 /pylint/checkers/typecheck.py | |
parent | ecd3406324d52e9e0805086454e35a6a6f15b133 (diff) | |
download | pylint-cff9ac71dcab7c803eaeca080c829842c6e433d2.tar.gz |
Remove metaclass specific logic in _emit_no_member, which is already handled properly on astroid's side.
Diffstat (limited to 'pylint/checkers/typecheck.py')
-rw-r--r-- | pylint/checkers/typecheck.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py index f4551f8..14be889 100644 --- a/pylint/checkers/typecheck.py +++ b/pylint/checkers/typecheck.py @@ -180,20 +180,6 @@ def _emit_no_member(node, owner, owner_name, attrname, ignored_mixins): return False if not all(map(helpers.has_known_bases, owner.type.mro())): return False - if isinstance(owner, astroid.Class): - # Look up in the metaclass only if the owner is itself - # a class. - # TODO: getattr doesn't return by default members - # from the metaclass, because handling various cases - # of methods accessible from the metaclass itself - # and/or subclasses only is too complicated for little to - # no benefit. - metaclass = owner.metaclass() or owner.implicit_metaclass() - try: - if metaclass and metaclass.getattr(attrname): - return False - except NotFoundError: - pass return True |