Skip to content

Commit 7c18d0b

Browse files
authored
Clarify how a blank line between imports looks like
1 parent 5625a11 commit 7c18d0b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

peps/pep-0008.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,15 @@ Imports
382382
2. Related third party imports.
383383
3. Local application/library specific imports.
384384

385-
You should put a blank line between each group of imports.
385+
You should put a blank line between each group of imports:
386+
387+
.. code-block::
388+
import os
389+
import sys
390+
391+
import mypkg.sibling
392+
from mypkg import sibling
393+
from mypkg.sibling import example
386394
387395
- Absolute imports are recommended, as they are usually more readable
388396
and tend to be better behaved (or at least give better error

0 commit comments

Comments
 (0)