We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6bb9f0 commit b916b37Copy full SHA for b916b37
pylint/checkers/classes.py
@@ -1103,9 +1103,7 @@ def form_annotations(arguments):
1103
annotations = chain(
1104
(arguments.posonlyargs_annotations or []), arguments.annotations
1105
)
1106
- return [
1107
- annotation.as_string() for annotation in filter(None, annotations)
1108
- ]
+ return [ann.as_string() for ann in annotations if ann is not None]
1109
1110
called_annotations = form_annotations(function.args)
1111
overridden_annotations = form_annotations(meth_node.args)
0 commit comments