summaryrefslogtreecommitdiff
path: root/pylint/checkers/classes.py
diff options
context:
space:
mode:
authorSushobhit <31987769+sushobhit27@users.noreply.github.com>2018-06-22 17:10:30 +0530
committerGitHub <noreply@github.com>2018-06-22 17:10:30 +0530
commit6a0d9d5df29a151a2c76614623acaf492be3746f (patch)
treeae0500cebabc21a690c90e7f44e4cc4697f7cc79 /pylint/checkers/classes.py
parent5673ffe2d83282e79d958b9bd84f47245a201127 (diff)
parentac339df90a4c29bc840237c248b24a7534210ce8 (diff)
downloadpylint-git-6a0d9d5df29a151a2c76614623acaf492be3746f.tar.gz
Merge branch 'master' into fix_2177
Diffstat (limited to 'pylint/checkers/classes.py')
-rw-r--r--pylint/checkers/classes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/checkers/classes.py b/pylint/checkers/classes.py
index e8e2675bb..49609759f 100644
--- a/pylint/checkers/classes.py
+++ b/pylint/checkers/classes.py
@@ -882,7 +882,7 @@ a metaclass class method.'}
if meth_node is not None:
def form_annotations(annotations):
- return [a.name if a is not None else a for a in annotations]
+ return [annotation.as_string() for annotation in filter(None, annotations)]
called_annotations = form_annotations(function.args.annotations)
overridden_annotations = form_annotations(meth_node.args.annotations)
if called_annotations and overridden_annotations: