mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-16758 Preserve order of sections specified in Google code style guidelines
This commit is contained in:
@@ -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
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user