summaryrefslogtreecommitdiff
path: root/pylint/checkers/typecheck.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-08-26 22:09:27 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2015-08-26 22:09:27 +0300
commit596acc38bc6187dd7c3e05dffa0164f7d9b87dc8 (patch)
tree88256ac8aa8c38a3b6a36d2da9e3b9b154ffb3fe /pylint/checkers/typecheck.py
parent90755257e2a2c1a9b45b1a7e5470eef760fe6a90 (diff)
downloadpylint-596acc38bc6187dd7c3e05dffa0164f7d9b87dc8.tar.gz
Use the new node names for the visit and leave methods
Also, emit a PendingDeprecationWarning if the old names are still used, this support being removed in pylint 2.0.
Diffstat (limited to 'pylint/checkers/typecheck.py')
-rw-r--r--pylint/checkers/typecheck.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py
index dd9e55a..9af8159 100644
--- a/pylint/checkers/typecheck.py
+++ b/pylint/checkers/typecheck.py
@@ -288,15 +288,15 @@ accessed. Python regular expressions are accepted.'}
# do this in open since config not fully initialized in __init__
self.generated_members = list(self.config.generated_members)
- def visit_assattr(self, node):
+ def visit_assignattr(self, node):
if isinstance(node.assign_type(), astroid.AugAssign):
- self.visit_getattr(node)
+ self.visit_attribute(node)
def visit_delattr(self, node):
- self.visit_getattr(node)
+ self.visit_attribute(node)
@check_messages('no-member')
- def visit_getattr(self, node):
+ def visit_attribute(self, node):
"""check that the accessed attribute exists
to avoid too much false positives for now, we'll consider the code as
@@ -449,7 +449,7 @@ accessed. Python regular expressions are accepted.'}
break
@check_messages(*(list(MSGS.keys())))
- def visit_callfunc(self, node):
+ def visit_call(self, node):
"""check that called functions/methods are inferred to callable objects,
and that the arguments passed to the function match the parameters in
the inferred function's definition