Skip to content

Commit ef27e0b

Browse files
committed
Clarify how a blank line between imports looks like
add missing class
1 parent 5625a11 commit ef27e0b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

peps/pep-0008.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,16 @@ 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+
:class: good
389+
import os
390+
import sys
391+
392+
import mypkg.sibling
393+
from mypkg import sibling
394+
from mypkg.sibling import example
386395
387396
- Absolute imports are recommended, as they are usually more readable
388397
and tend to be better behaved (or at least give better error

0 commit comments

Comments
 (0)