diff --git a/test/completion/docstring.py b/test/completion/docstring.py index ae1576b6..9c58bd0d 100644 --- a/test/completion/docstring.py +++ b/test/completion/docstring.py @@ -47,7 +47,7 @@ f() class ProgramNode(): pass -def func(node, node2): +def local_classes(node, node2): """ :type node: ProgramNode ... and the class definition after this func definition: @@ -62,6 +62,21 @@ class ProgramNode2(): pass +def list_with_non_imports(lst): + """ + Should be able to work with tuples and lists and still import stuff. + + :type lst: (threading.Thread, [collections.OrderedDict, ...]) + """ + #? ['start'] + lst[0].start + + import collections as col + # use some weird index + #? col.OrderedDict() + lst[1][10] + + # ----------------- # epydoc style # -----------------