As per BDFL pronouncement (via private email), be explicit that both styles of
closing brace/bracket/paren indentation shall be allowed.
This commit is contained in:
parent
617d74e66e
commit
f1d4e5f985
25
pep-0008.txt
25
pep-0008.txt
|
@ -100,6 +100,31 @@ Optional::
|
|||
var_one, var_two,
|
||||
var_three, var_four)
|
||||
|
||||
The closing brace/bracket/parenthesis on multi-line constructs may
|
||||
either line up under the last item of the list, as in::
|
||||
|
||||
my_list = [
|
||||
1, 2, 3,
|
||||
4, 5, 6,
|
||||
]
|
||||
result = some_function_that_takes_arguments(
|
||||
'a', 'b', 'c',
|
||||
'd', 'e', 'f',
|
||||
)
|
||||
|
||||
or it may be lined up under the first character of the line that
|
||||
starts the multi-line construct, as in::
|
||||
|
||||
my_list = [
|
||||
1, 2, 3,
|
||||
4, 5, 6,
|
||||
]
|
||||
result = some_function_that_takes_arguments(
|
||||
'a', 'b', 'c',
|
||||
'd', 'e', 'f',
|
||||
)
|
||||
|
||||
|
||||
Tabs or Spaces?
|
||||
---------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue