Skip to content

Commit

Permalink
Update outdated sentences in trans.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MeGaGiGaGon committed Oct 24, 2024
1 parent 79a2f2d commit 559de44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/black/trans.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ def _validate_msg(line: Line, string_idx: int) -> TResult[None]:
- The set of all string prefixes in the string group is of
length greater than one and is not equal to {"", "f"}.
- The string group consists of raw strings.
- The string group would merge f-strings with different quote types.
- The string group merge would change f-string quote style.
- The string group is stringified type annotations. We don't want to
process stringified type annotations since pyright doesn't support
them spanning multiple string values. (NOTE: mypy, pytype, pyre do
Expand Down Expand Up @@ -847,7 +847,7 @@ def _validate_msg(line: Line, string_idx: int) -> TResult[None]:

if "f" in prefix and leaf.value[-1] != QUOTE:
return TErr(
"StringMerger does NOT merge f-strings with different quote types."
"StringMerger does NOT change f-string quote style on merge."
)

if id(leaf) in line.comments:
Expand Down

0 comments on commit 559de44

Please sign in to comment.