Sphinx oneline param type declaration feature

allows for type definition in ":param keyword"
This commit is contained in:
Pawel Palucki
2014-07-26 22:14:28 +02:00
parent 293fa5a14f
commit d359f5d043
4 changed files with 24 additions and 4 deletions

View File

@@ -50,6 +50,16 @@ class TestDocstring(unittest.TestCase):
names = [c.name for c in jedi.Script(s).completions()]
assert 'start' in names
def test_docstrings_param_type(self):
s = """
def func(arg):
'''
:param str arg: some description
'''
arg."""
names = [c.name for c in jedi.Script(s).completions()]
assert 'join' in names
def test_docstrings_type_str(self):
s = """
def func(arg):