mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
As in case with similar options for braces in Java and other languages there are three variants of behavior: don't force, force always, and force if the corresponding statement spans multiple lines. In either way, the option is applied only if "from" import contains more than one imported name. PY-20633 Allow to wrap only multiline "from" imports in parentheses
12 lines
247 B
Python
12 lines
247 B
Python
from module import foo
|
|
from module import foo, bar
|
|
# | margin
|
|
from module import foo, bar, baz
|
|
from module import foo, \
|
|
bar
|
|
from module import foo, \
|
|
bar # comment
|
|
from module import foo, \
|
|
\
|
|
\
|
|
bar, |