Formatting fixes to new PEP8 text
This commit is contained in:
parent
44c193d765
commit
f76f34e7f4
18
pep-0008.txt
18
pep-0008.txt
|
@ -518,14 +518,18 @@ Other Recommendations
|
|||
Additionally, use a single space after the ``:``, as well as a single space
|
||||
on either side of the ``->`` sign representing an annotated return value.
|
||||
|
||||
Yes: def munge(input: AnyStr):
|
||||
Yes: def munge(sep: AnyStr = None):
|
||||
Yes: def munge() -> AnyStr:
|
||||
Yes: def munge(input: AnyStr, sep: AnyStr = None, limit=1000):
|
||||
Yes::
|
||||
|
||||
No: def munge(input: AnyStr=None):
|
||||
No: def munge(input:AnyStr):
|
||||
No: def munge(input: AnyStr)->PosInt:
|
||||
def munge(input: AnyStr):
|
||||
def munge(sep: AnyStr = None):
|
||||
def munge() -> AnyStr:
|
||||
def munge(input: AnyStr, sep: AnyStr = None, limit=1000):
|
||||
|
||||
No::
|
||||
|
||||
def munge(input: AnyStr=None):
|
||||
def munge(input:AnyStr):
|
||||
def munge(input: AnyStr)->PosInt:
|
||||
|
||||
- Compound statements (multiple statements on the same line) are
|
||||
generally discouraged.
|
||||
|
|
Loading…
Reference in New Issue