|
1 | 1 | # Change Log |
2 | 2 |
|
3 | | -## Unreleased |
4 | | - |
5 | | -<!-- PR authors: |
6 | | - Please include the PR number in the changelog entry, not the issue number --> |
7 | | - |
8 | | -### Highlights |
9 | | - |
10 | | -<!-- Include any especially major or disruptive changes here --> |
| 3 | +## 26.3.0 |
11 | 4 |
|
12 | 5 | ### Stable style |
13 | 6 |
|
14 | | -<!-- Changes that affect Black's stable style --> |
15 | | - |
16 | 7 | - Don't double-decode input, causing non-UTF-8 files to be corrupted (#4964) |
17 | 8 | - Fix crash on standalone comment in lambda default arguments (#4993) |
| 9 | +- Preserve parentheses when `# type: ignore` comments would be merged with other |
| 10 | + comments on the same line, preventing AST equivalence failures (#4888) |
18 | 11 |
|
19 | 12 | ### Preview style |
20 | 13 |
|
21 | | -<!-- Changes that affect Black's preview style --> |
22 | | - |
23 | 14 | - Fix bug where `if` guards in `case` blocks were incorrectly split when the pattern had |
24 | 15 | a trailing comma (#4884) |
25 | 16 | - Fix `string_processing` crashing on unassigned long string literals with trailing |
26 | 17 | commas (one-item tuples) (#4929) |
27 | 18 | - Simplify implementation of the power operator "hugging" logic (#4918) |
28 | 19 |
|
29 | | -### Configuration |
30 | | - |
31 | | -<!-- Changes to how Black can be configured --> |
32 | | - |
33 | 20 | ### Packaging |
34 | 21 |
|
35 | | -<!-- Changes to how Black is packaged, such as dependency requirements --> |
36 | | - |
37 | 22 | - Fix shutdown errors in PyInstaller builds on macOS by disabling multiprocessing in |
38 | 23 | frozen environments (#4930) |
39 | 24 |
|
40 | | -### Parser |
41 | | - |
42 | | -<!-- Changes to the parser or to version autodetection --> |
43 | | - |
44 | 25 | ### Performance |
45 | 26 |
|
46 | 27 | - Introduce winloop for windows as an alternative to uvloop (#4996) |
|
52 | 33 |
|
53 | 34 | ### Output |
54 | 35 |
|
55 | | -<!-- Changes to Black's terminal output and error messages --> |
56 | | - |
57 | 36 | - Emit a clear warning when the target Python version is newer than the running Python |
58 | 37 | version, since AST safety checks cannot parse newer syntax. Also replace the |
59 | 38 | misleading "INTERNAL ERROR" message with an actionable error explaining the version |
|
66 | 45 |
|
67 | 46 | ### Integrations |
68 | 47 |
|
69 | | -<!-- For example, Docker, GitHub Actions, pre-commit, editors --> |
70 | | - |
71 | 48 | - Remove unused gallery script (#5030) |
72 | 49 | - Harden parsing of `black` requirements in the GitHub Action when `use_pyproject` is |
73 | 50 | enabled so that only version specifiers are accepted and direct references such as |
|
78 | 55 |
|
79 | 56 | ### Documentation |
80 | 57 |
|
81 | | -<!-- Major changes to documentation and policies. Small docs changes |
82 | | - don't need a changelog entry. --> |
83 | | - |
84 | 58 | - Expand preview style documentation with detailed examples for `wrap_comprehension_in`, |
85 | 59 | `simplify_power_operator_hugging`, and `wrap_long_dict_values_in_parens` features |
86 | 60 | (#4987) |
@@ -160,8 +134,6 @@ directories. |
160 | 134 | - Fix crash when multiple `# fmt: skip` comments are used in a multi-part if-clause, on |
161 | 135 | string literals, or on dictionary entries with long lines (#4872) |
162 | 136 | - Fix possible crash when `fmt: ` directives aren't on the top level (#4856) |
163 | | -- Preserve parentheses when `# type: ignore` comments would be merged with other |
164 | | - comments on the same line, preventing AST equivalence failures (#4888) |
165 | 137 |
|
166 | 138 | ### Preview style |
167 | 139 |
|
|
0 commit comments