mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-28 02:43:17 +08:00
Specially crafted docstrings sometimes lead to errors, fixes #1103
This commit is contained in:
1 parent
ba96c21f83
commit
91499565a9
3 files changed
+16
-3
No files matched your search
@@ -30,13 +30,17 @@ def sphinxy(a, b, c, d, x):
|
||||
sphinxy()
|
||||
|
||||
# wrong declarations
|
||||
def sphinxy2(a, b, x):
|
||||
def sphinxy2(a, b, x, y, z):
|
||||
"""
|
||||
:param a: Forgot type declaration
|
||||
:type a:
|
||||
:param b: Just something
|
||||
:type b: ``
|
||||
:param x: Just something without type
|
||||
:param y: A function
|
||||
:type y: def l(): pass
|
||||
:param z: A keyword
|
||||
:type z: return
|
||||
:rtype:
|
||||
"""
|
||||
#?
|
||||
@@ -45,6 +49,10 @@ def sphinxy2(a, b, x):
|
||||
b
|
||||
#?
|
||||
x
|
||||
#?
|
||||
y
|
||||
#?
|
||||
z
|
||||
|
||||
#?
|
||||
sphinxy2()
|
||||
|
||||
Reference in new issue
Block a user