diff --git a/jedi/parser/tree.py b/jedi/parser/tree.py index 4df4ee06..52b5a560 100644 --- a/jedi/parser/tree.py +++ b/jedi/parser/tree.py @@ -969,10 +969,10 @@ class Function(ClassOrFunc): 0) 1) 2) parameter list (including open-paren and close-paren s) - 3) - 4) Node() representing function body - 5) ?? - 6) annotation (if present) + 3 or 5) + 4 or 6) Node() representing function body + 3) -> (if annotation is also present) + 4) annotation (if present) """ type = 'funcdef'