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 7c18d0bCopy full SHA for 7c18d0b
peps/pep-0008.rst
@@ -382,7 +382,15 @@ 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
+ import os
389
+ import sys
390
391
+ import mypkg.sibling
392
+ from mypkg import sibling
393
+ from mypkg.sibling import example
394
395
- Absolute imports are recommended, as they are usually more readable
396
and tend to be better behaved (or at least give better error
0 commit comments