mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +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
14 lines
329 B
Python
14 lines
329 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, )
|