From 90202b2ad6e86ac53be8d69d2bd58860bcb85e70 Mon Sep 17 00:00:00 2001 From: David Halter Date: Tue, 23 Jul 2013 15:11:14 +0200 Subject: [PATCH] tests for failing docstrings --- test/completion/docstring.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/test/completion/docstring.py b/test/completion/docstring.py index b61d05ed..0b555881 100644 --- a/test/completion/docstring.py +++ b/test/completion/docstring.py @@ -1,5 +1,8 @@ """ Test docstrings in functions and classes, which are used to infer types """ +# ----------------- +# sphinx style +# ----------------- def f(a, b, c, d): """ asdfasdf :param a: blablabla @@ -23,6 +26,22 @@ def f(a, b, c, d): #? dict() f() +# wrong declarations +def f(a, b): + """ + :param a: Forgot type declaration + :type a: + :param b: Just something + :type b: `` + """ + #? + a + #? + b + +# ----------------- +# epydoc style +# ----------------- def e(a, b): """ asdfasdf @type a: str