Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions docs/writing/style.rst
Original file line number Diff line number Diff line change
Expand Up @@ -581,11 +581,14 @@ and square braces.

.. code-block:: python

my_very_big_string = ("For a long time I used to go to bed early. Sometimes, "
"when I had put out my candle, my eyes would close so quickly that I had not even "
"time to say “I’m going to sleep.”")

from some.deep.module.inside.a.module import (a_nice_function, another_nice_function,
my_very_big_string = (
"For a long time I used to go to bed early. Sometimes, "
"when I had put out my candle, my eyes would close so quickly "
"that I had not even time to say “I’m going to sleep.”"
)

from some.deep.module.inside.a.module import (a_nice_function,
another_nice_function,
yet_another_nice_functio)

However, more often than not having to split long logical line is a sign that
Expand Down