PY-16758 Preserve order of sections specified in Google code style guidelines

This commit is contained in:
Mikhail Golubev
2015-09-02 14:35:46 +03:00
parent 3f34dfaa4e
commit 7a22acb8d3
19 changed files with 225 additions and 38 deletions
@@ -0,0 +1,8 @@
def f(**kwargs):
"""
Keyword arguments:
foo: bar
Returns:
object:
"""
@@ -0,0 +1,13 @@
def f():
"""
Yields:
int: meaning of life, universe and everything
Returns:
object:
Example:
print(next(f))
"""
yield 42
return
@@ -0,0 +1,10 @@
def f():
"""
Returns:
object:
Raises:
RuntimeException
"""
raise RuntimeException
@@ -0,0 +1,12 @@
def f(x):
"""
Args:
x:
Keyword arguments:
Returns:
None
"""
@@ -2,9 +2,9 @@ def f(x, y):
"""
Summary.
Returns:
Something
Args:
x (object):
Returns:
Something
"""
@@ -2,11 +2,11 @@ def f(x, y):
"""
Summary.
Returns
-------
Something
Parameters
----------
x : object
Returns
-------
Something
"""
@@ -0,0 +1,5 @@
def <caret>f(**kwargs):
"""
Keyword arguments:
foo: bar
"""
@@ -0,0 +1,10 @@
def <caret>f():
"""
Yields:
int: meaning of life, universe and everything
Example:
print(next(f))
"""
yield 42
return
@@ -0,0 +1,7 @@
def <caret>f():
"""
Raises:
RuntimeException
"""
raise RuntimeException
@@ -0,0 +1,9 @@
def <caret>f(x):
"""
Keyword arguments:
Returns:
None
"""