From 2f71bd4e6359a63d8648fc04951459240f7ce74b Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 27 Mar 2014 20:05:39 +0100 Subject: [PATCH] test for multiple docstring imports with complicated lists and tuples --- test/completion/docstring.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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 # -----------------