mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
tests for failing docstrings
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
""" Test docstrings in functions and classes, which are used to infer types """
|
""" Test docstrings in functions and classes, which are used to infer types """
|
||||||
|
|
||||||
|
# -----------------
|
||||||
|
# sphinx style
|
||||||
|
# -----------------
|
||||||
def f(a, b, c, d):
|
def f(a, b, c, d):
|
||||||
""" asdfasdf
|
""" asdfasdf
|
||||||
:param a: blablabla
|
:param a: blablabla
|
||||||
@@ -23,6 +26,22 @@ def f(a, b, c, d):
|
|||||||
#? dict()
|
#? dict()
|
||||||
f()
|
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):
|
def e(a, b):
|
||||||
""" asdfasdf
|
""" asdfasdf
|
||||||
@type a: str
|
@type a: str
|
||||||
|
|||||||
Reference in New Issue
Block a user