summaryrefslogtreecommitdiff
path: root/checkers/variables.py
diff options
context:
space:
mode:
Diffstat (limited to 'checkers/variables.py')
-rw-r--r--checkers/variables.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/checkers/variables.py b/checkers/variables.py
index c5e7146..cf9509a 100644
--- a/checkers/variables.py
+++ b/checkers/variables.py
@@ -41,8 +41,7 @@ def overridden_method(klass, name):
# We have found an ancestor defining <name> but it's not in the local
# dictionary. This may happen with astng built from living objects.
return None
- # check its a method
- if getattr(meth_node.args, 'args', None) is not None:
+ if isinstance(meth_node, Function):
return meth_node
return None