diff options
author | Sushobhit <31987769+sushobhit27@users.noreply.github.com> | 2018-06-22 17:10:30 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-22 17:10:30 +0530 |
commit | 6a0d9d5df29a151a2c76614623acaf492be3746f (patch) | |
tree | ae0500cebabc21a690c90e7f44e4cc4697f7cc79 /pylint/checkers/classes.py | |
parent | 5673ffe2d83282e79d958b9bd84f47245a201127 (diff) | |
parent | ac339df90a4c29bc840237c248b24a7534210ce8 (diff) | |
download | pylint-git-6a0d9d5df29a151a2c76614623acaf492be3746f.tar.gz |
Merge branch 'master' into fix_2177
Diffstat (limited to 'pylint/checkers/classes.py')
-rw-r--r-- | pylint/checkers/classes.py | 2 |
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: |