PY-9795 Better docstring updates: avoid extra blank line in empty docstring and keep blank lines after last field in section

This commit is contained in:
Mikhail Golubev
2015-09-06 02:20:14 +03:00
parent 3b35da5045
commit 0d8c35a8f7
11 changed files with 25 additions and 16 deletions
@@ -1,6 +1,5 @@
def f(x, y, z):
"""
Args:
x:
y:
@@ -1,6 +1,5 @@
def f(x, y):
"""
Args:
x (object):
"""
@@ -1,6 +1,5 @@
def f(x, y):
"""
Parameters
----------
x : object
@@ -1,6 +1,5 @@
def f(x, y):
"""
Returns:
object:
"""
@@ -1,6 +1,5 @@
def f(x, y):
"""
Returns
-------
object