diff --git a/black.py b/black.py index c44bc9b..680b1f4 100644 --- a/black.py +++ b/black.py @@ -2206,7 +2206,7 @@ def rhs(line: Line, supports_trailing_commas: bool = False) -> Iterator[Line]: # All splits failed, best effort split with no omits. # This mostly happens to multiline strings that are by definition # reported as not fitting a single line. - yield from right_hand_split(line, supports_trailing_commas) + yield from right_hand_split(line, line_length, supports_trailing_commas) if line.inside_brackets: split_funcs = [delimiter_split, standalone_comment_split, rhs] diff --git a/tests/data/composition.py b/tests/data/composition.py index ac63e46..31f5bd5 100644 --- a/tests/data/composition.py +++ b/tests/data/composition.py @@ -166,17 +166,14 @@ def tricky_asserts(self) -> None: _C.__init__.__code__.co_firstlineno + 1, ) - assert ( - expectedexpectedexpectedexpectedexpectedexpectedexpectedexpectedexpect - == { - key1: value1, - key2: value2, - key3: value3, - key4: value4, - key5: value5, - key6: value6, - key7: value7, - key8: value8, - key9: value9, - } - ) + assert expectedexpectedexpectedexpectedexpectedexpectedexpectedexpectedexpect == { + key1: value1, + key2: value2, + key3: value3, + key4: value4, + key5: value5, + key6: value6, + key7: value7, + key8: value8, + key9: value9, + }