mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 14:34:31 +08:00
added docstring tests (forgot to add them a while ago), important for #87
This commit is contained in:
21
test/completion/docstring.py
Normal file
21
test/completion/docstring.py
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
""" Test docstrings in functions and classes, which are used to infer types """
|
||||||
|
|
||||||
|
def f(a, b):
|
||||||
|
""" asdfasdf
|
||||||
|
:param a: blablabla
|
||||||
|
:type a: str
|
||||||
|
"""
|
||||||
|
#? str()
|
||||||
|
a
|
||||||
|
#?
|
||||||
|
b
|
||||||
|
|
||||||
|
def g(a, b):
|
||||||
|
""" asdfasdf
|
||||||
|
Arguments:
|
||||||
|
a (str): blablabla
|
||||||
|
"""
|
||||||
|
#? str()
|
||||||
|
a
|
||||||
|
#?
|
||||||
|
b
|
||||||
Reference in New Issue
Block a user