Files
openide/python/testData/formatter/fromImportForceParenthesesIfMultiline.py
Mikhail Golubev 6f7faffcc3 PY-20633 Allow to forcibly surround "from" imports with parentheses
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
2017-01-23 17:41:20 +03:00

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,