Loading CHANGES.md +1 −0 Changes for CHANGES.md: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ - Add extra uvloop install + import support if in python env (#2258) - Fix --experimental-string-processing crash when matching parens are not found (#2283) - Make sure to split lines that start with a string operator (#2286) - Fix regular expression that black uses to identify f-expressions (#2287) ### _Blackd_ Loading src/black/trans.py +2 −2 Changes for src/black/trans.py: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -971,8 +971,8 @@ class StringSplitter(CustomSplitMapMixin, BaseStringSplitter): | \{\{ | \}\} | (?R) )+? (?<!\}) \} (?:\}\})* (?!\}) )+ \} """ def do_splitter_match(self, line: Line) -> TMatchResult: Loading tests/data/long_strings__regression.py +12 −0 Changes for tests/data/long_strings__regression.py: 12 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -407,6 +407,12 @@ def _legacy_listen_examples(): ) temp_msg = ( f"{f'{humanize_number(pos)}.': <{pound_len+2}} " f"{balance: <{bal_len + 5}} " f"<<{author.display_name}>>\n" ) assert str(suffix_arr) == ( "['$', 'angaroo$', 'angrykangaroo$', 'aroo$', 'garoo$', " "'grykangaroo$', 'kangaroo$', 'ngaroo$', 'ngrykangaroo$', " Loading Loading @@ -942,6 +948,12 @@ def _legacy_listen_examples(): ) temp_msg = ( f"{f'{humanize_number(pos)}.': <{pound_len+2}} " f"{balance: <{bal_len + 5}} " f"<<{author.display_name}>>\n" ) assert ( str(suffix_arr) == "['$', 'angaroo$', 'angrykangaroo$', 'aroo$', 'garoo$', " Loading Loading
CHANGES.md +1 −0 Changes for CHANGES.md: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ - Add extra uvloop install + import support if in python env (#2258) - Fix --experimental-string-processing crash when matching parens are not found (#2283) - Make sure to split lines that start with a string operator (#2286) - Fix regular expression that black uses to identify f-expressions (#2287) ### _Blackd_ Loading
src/black/trans.py +2 −2 Changes for src/black/trans.py: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -971,8 +971,8 @@ class StringSplitter(CustomSplitMapMixin, BaseStringSplitter): | \{\{ | \}\} | (?R) )+? (?<!\}) \} (?:\}\})* (?!\}) )+ \} """ def do_splitter_match(self, line: Line) -> TMatchResult: Loading
tests/data/long_strings__regression.py +12 −0 Changes for tests/data/long_strings__regression.py: 12 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -407,6 +407,12 @@ def _legacy_listen_examples(): ) temp_msg = ( f"{f'{humanize_number(pos)}.': <{pound_len+2}} " f"{balance: <{bal_len + 5}} " f"<<{author.display_name}>>\n" ) assert str(suffix_arr) == ( "['$', 'angaroo$', 'angrykangaroo$', 'aroo$', 'garoo$', " "'grykangaroo$', 'kangaroo$', 'ngaroo$', 'ngrykangaroo$', " Loading Loading @@ -942,6 +948,12 @@ def _legacy_listen_examples(): ) temp_msg = ( f"{f'{humanize_number(pos)}.': <{pound_len+2}} " f"{balance: <{bal_len + 5}} " f"<<{author.display_name}>>\n" ) assert ( str(suffix_arr) == "['$', 'angaroo$', 'angrykangaroo$', 'aroo$', 'garoo$', " Loading