Repository navigation
Tell isort not to combine imports from the same package #2180
Unanswered
superbobry
asked this question in
Q&A
Replies: 1 comment
|
For intentionally separate groups from the same package, use an import isort
source = """from foo import baz
# isort: split
from foo import Boo, Bar
"""
print(isort.code(source), end="")Output: from foo import baz
# isort: split
from foo import Bar, BooI tested this with isort 9.0.2 and Python 3.12.14. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Does
isorthave an option to not combine imports from the same package?For example,
which gets combined to
with the default profile, whereas I would like to see
All reactions