Add tests in completion/docstring.py

This commit is contained in:
Takafumi Arakaki
2013-01-30 21:23:04 +01:00
parent b8f139d574
commit 0cbbb17a82

View File

@@ -1,10 +1,12 @@
""" Test docstrings in functions and classes, which are used to infer types """
def f(a, b):
def f(a, b, c, d):
""" asdfasdf
:param a: blablabla
:type a: str
:type b: (str, int)
:type c: threading.Thread
:type d: :class:`threading.Thread`
:rtype: dict
"""
#? str()
@@ -13,6 +15,10 @@ def f(a, b):
b[0]
#? int()
b[1]
#? ['join']
c.join
#? ['join']
d.join
#? dict()
f()