We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4647fb commit ba2cc11Copy full SHA for ba2cc11
src/black/linegen.py
@@ -566,7 +566,7 @@ def transform_line(
566
# split the line. Default to line_str, if no power operator are present on the line.
567
line_str_hugging_power_ops = (
568
(_hugging_power_ops_line_to_string(line, features, mode) or line_str)
569
- if mode.preview
+ if Preview.fix_power_op_line_length in mode
570
else line_str
571
)
572
src/black/mode.py
@@ -188,6 +188,7 @@ class Preview(Enum):
188
dummy_implementations = auto()
189
walrus_subscript = auto()
190
module_docstring_newlines = auto()
191
+ fix_power_op_line_length = auto()
192
193
194
class Deprecated(UserWarning):
0 commit comments