|
9 | 9 | ### Stable style |
10 | 10 |
|
11 | 11 | <!-- Changes that affect Black's stable style --> |
| 12 | + |
12 | 13 | - Fix crash while formatting a long `del` statement containing tuples (#4628) |
13 | | -- Fix crash while formatting expressions using the walrus operator in complex |
14 | | - `with` statements (#4630) |
| 14 | +- Fix crash while formatting expressions using the walrus operator in complex `with` |
| 15 | + statements (#4630) |
15 | 16 | - Handle `# fmt: skip` followed by a comment at the end of file (#4635) |
16 | | -- Fix crash when a tuple appears in the `as` clause of a `with` statement |
17 | | - (#4634) |
| 17 | +- Fix crash when a tuple appears in the `as` clause of a `with` statement (#4634) |
18 | 18 | - Fix crash when tuple is used as a context manager inside a `with` statement (#4646) |
19 | 19 |
|
20 | 20 | ### Preview style |
21 | 21 |
|
22 | 22 | <!-- Changes that affect Black's preview style --> |
23 | 23 |
|
24 | | -- Fix a bug where one-liner functions/conditionals marked with `# fmt: skip` |
25 | | - would still be formatted (#4552) |
| 24 | +- Fix a bug where one-liner functions/conditionals marked with `# fmt: skip` would still |
| 25 | + be formatted (#4552) |
26 | 26 |
|
27 | 27 | ### Configuration |
28 | 28 |
|
|
37 | 37 | <!-- Changes to the parser or to version autodetection --> |
38 | 38 |
|
39 | 39 | - Rewrite tokenizer to improve performance and compliance (#4536) |
40 | | -- Fix bug where certain unusual expressions (e.g., lambdas) were not accepted |
41 | | - in type parameter bounds and defaults. (#4602) |
| 40 | +- Fix bug where certain unusual expressions (e.g., lambdas) were not accepted in type |
| 41 | + parameter bounds and defaults. (#4602) |
42 | 42 |
|
43 | 43 | ### Performance |
44 | 44 |
|
|
57 | 57 | <!-- For example, Docker, GitHub Actions, pre-commit, editors --> |
58 | 58 |
|
59 | 59 | - Fix the version check in the vim file to reject Python 3.8 (#4567) |
60 | | -- Enhance GitHub Action `psf/black` to read Black version from an additional |
61 | | - section in pyproject.toml: `[project.dependency-groups]` (#4606) |
| 60 | +- Enhance GitHub Action `psf/black` to read Black version from an additional section in |
| 61 | + pyproject.toml: `[project.dependency-groups]` (#4606) |
62 | 62 |
|
63 | 63 | ### Documentation |
64 | 64 |
|
|
69 | 69 |
|
70 | 70 | ### Highlights |
71 | 71 |
|
72 | | -This release introduces the new 2025 stable style (#4558), stabilizing |
73 | | -the following changes: |
| 72 | +This release introduces the new 2025 stable style (#4558), stabilizing the following |
| 73 | +changes: |
74 | 74 |
|
75 | 75 | - Normalize casing of Unicode escape characters in strings to lowercase (#2916) |
76 | 76 | - Fix inconsistencies in whether certain strings are detected as docstrings (#4095) |
77 | 77 | - Consistently add trailing commas to typed function parameters (#4164) |
78 | 78 | - Remove redundant parentheses in if guards for case blocks (#4214) |
79 | 79 | - Add parentheses to if clauses in case blocks when the line is too long (#4269) |
80 | 80 | - Whitespace before `# fmt: skip` comments is no longer normalized (#4146) |
81 | | -- Fix line length computation for certain expressions that involve the power operator (#4154) |
| 81 | +- Fix line length computation for certain expressions that involve the power operator |
| 82 | + (#4154) |
82 | 83 | - Check if there is a newline before the terminating quotes of a docstring (#4185) |
83 | 84 | - Fix type annotation spacing between `*` and more complex type variable tuple (#4440) |
84 | 85 |
|
85 | 86 | The following changes were not in any previous release: |
86 | 87 |
|
87 | 88 | - Remove parentheses around sole list items (#4312) |
88 | | -- Generic function definitions are now formatted more elegantly: parameters are |
89 | | - split over multiple lines first instead of type parameter definitions (#4553) |
| 89 | +- Generic function definitions are now formatted more elegantly: parameters are split |
| 90 | + over multiple lines first instead of type parameter definitions (#4553) |
90 | 91 |
|
91 | 92 | ### Stable style |
92 | 93 |
|
|
0 commit comments