PY-9795, PY-4717 Intention "Specify type ..." works for missing docstrings in Google and Numpy formats

This commit is contained in:
Mikhail Golubev
2015-09-02 14:35:12 +03:00
parent 23e3cf2144
commit ab4ca84665
18 changed files with 174 additions and 49 deletions
@@ -0,0 +1,7 @@
def f(x):
"""
Parameters:
x (object):
"""
return 42
@@ -0,0 +1,8 @@
def f(x):
"""
Parameters
----------
x : object
"""
return 42
@@ -0,0 +1,7 @@
def f(x):
"""
Returns:
object:
"""
return 42
@@ -0,0 +1,8 @@
def f(x):
"""
Returns
-------
object
"""
return 42
@@ -0,0 +1,2 @@
def f(<caret>x):
return 42
@@ -0,0 +1,2 @@
def f(<caret>x):
return 42
@@ -0,0 +1,2 @@
def <caret>f(x):
return 42
@@ -0,0 +1,2 @@
def <caret>f(x):
return 42