We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5625a11 commit ef27e0bCopy full SHA for ef27e0b
peps/pep-0008.rst
@@ -382,7 +382,16 @@ Imports
382
2. Related third party imports.
383
3. Local application/library specific imports.
384
385
- You should put a blank line between each group of imports.
+ 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
395
396
- Absolute imports are recommended, as they are usually more readable
397
and tend to be better behaved (or at least give better error
0 commit comments