mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 14:54:47 +08:00
Add tests in completion/docstring.py
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
""" Test docstrings in functions and classes, which are used to infer types """
|
""" Test docstrings in functions and classes, which are used to infer types """
|
||||||
|
|
||||||
def f(a, b):
|
def f(a, b, c, d):
|
||||||
""" asdfasdf
|
""" asdfasdf
|
||||||
:param a: blablabla
|
:param a: blablabla
|
||||||
:type a: str
|
:type a: str
|
||||||
:type b: (str, int)
|
:type b: (str, int)
|
||||||
|
:type c: threading.Thread
|
||||||
|
:type d: :class:`threading.Thread`
|
||||||
:rtype: dict
|
:rtype: dict
|
||||||
"""
|
"""
|
||||||
#? str()
|
#? str()
|
||||||
@@ -13,6 +15,10 @@ def f(a, b):
|
|||||||
b[0]
|
b[0]
|
||||||
#? int()
|
#? int()
|
||||||
b[1]
|
b[1]
|
||||||
|
#? ['join']
|
||||||
|
c.join
|
||||||
|
#? ['join']
|
||||||
|
d.join
|
||||||
|
|
||||||
#? dict()
|
#? dict()
|
||||||
f()
|
f()
|
||||||
|
|||||||
Reference in New Issue
Block a user