|
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 --> |
| 3 | +## Version 26.5.0 |
7 | 4 |
|
8 | 5 | ### Highlights |
9 | 6 |
|
10 | | -<!-- Include any especially major or disruptive changes here --> |
| 7 | +- Add support for unpacking in comprehensions (PEP 798) and for lazy imports (PEP 810), |
| 8 | + both new syntactic features in Python 3.15 (#5048) |
| 9 | +- Python 3.15 is now supported. Compiled wheels are not yet provided for Python 3.15, so |
| 10 | + performance may be slower than on existing Python versions. Wheels will be provided |
| 11 | + once Python 3.15 is later in its release cycle. (#5127) |
11 | 12 |
|
12 | 13 | ### Stable style |
13 | 14 |
|
14 | | -<!-- Changes that affect Black's stable style --> |
15 | | - |
16 | | -- Preserve multiline compound statement headers when `# fmt: skip` is placed on the |
17 | | - colon line (#5117) |
18 | 15 | - Fix `# fmt: skip` being ignored in nested `if` expressions with parenthesized `in` |
19 | 16 | clauses (#4903) |
| 17 | +- Add syntactic support for Python 3.15 (#5048) |
20 | 18 | - Fix crash when an f-string follows a `# fmt: off` comment inside brackets (#5097) |
21 | | -- Add support for unpacking in comprehensions (PEP 798) and for lazy imports (PEP 810), |
22 | | - both new syntactic features in Python 3.15 (#5048) |
| 19 | +- Preserve multiline compound statement headers when `# fmt: skip` is placed on the |
| 20 | + colon line (#5117) |
23 | 21 |
|
24 | 22 | ### Preview style |
25 | 23 |
|
26 | | -<!-- Changes that affect Black's preview style --> |
27 | | - |
28 | | -- Prevent string merger from creating unsplittable long lines when a pragma comment |
29 | | - (e.g. `# type: ignore`) follows the closing bracket (#5096) |
30 | 24 | - Improve heuristics around whether blank lines should appear before, within and after |
31 | 25 | groups of same-name decorated functions (such as `@overload` groups) in `.pyi` stub |
32 | 26 | files (#5021) |
33 | 27 | - Fix blank lines being removed between a function and a decorated class in `.pyi` stub |
34 | 28 | files (#5092) |
35 | | - |
36 | | -### Configuration |
37 | | - |
38 | | -<!-- Changes to how Black can be configured --> |
| 29 | +- Prevent string merger from creating unsplittable long lines when a pragma comment |
| 30 | + (e.g. `# type: ignore`) follows the closing bracket (#5096) |
39 | 31 |
|
40 | 32 | ### Packaging |
41 | 33 |
|
42 | | -<!-- Changes to how Black is packaged, such as dependency requirements --> |
43 | | - |
44 | | -- Python 3.15 is now supported. Compiled wheels are not yet provided for Python 3.15, so |
45 | | - performance may be slower than on existing Python versions. Wheels will be provided |
46 | | - once Python 3.15 is later in its release cycle. (#5127) |
47 | | - |
48 | | -### Parser |
49 | | - |
50 | | -<!-- Changes to the parser or to version autodetection --> |
51 | | - |
52 | | -### Performance |
53 | | - |
54 | | -<!-- Changes that improve Black's performance. --> |
| 34 | +- Run CI on 3.15 (#5127) |
55 | 35 |
|
56 | 36 | ### Output |
57 | 37 |
|
58 | 38 | - Improve parse error readability by showing multi-line output with an error pointer. |
59 | 39 | (#5068) |
60 | | - |
61 | 40 | - Add `SourceASTParseError` to distinguish source parse failures from internal safety |
62 | 41 | errors, improving error reporting when Black's lenient parser accepts input that |
63 | 42 | `ast.parse()` rejects (#5080) |
64 | 43 |
|
65 | 44 | ### _Blackd_ |
66 | 45 |
|
67 | | -<!-- Changes to blackd --> |
68 | | - |
69 | 46 | - Return HTTP 400 (Bad Request) for source parse failures instead of HTTP 500, keeping |
70 | 47 | HTTP 500 only for genuine internal safety errors (#5080) |
71 | 48 |
|
72 | 49 | ### Integrations |
73 | 50 |
|
74 | | -<!-- For example, Docker, GitHub Actions, pre-commit, editors --> |
75 | | - |
76 | 51 | - Added documentation for doctest formatting tools and updated the integrations index to |
77 | 52 | match (#4916) |
78 | 53 |
|
79 | 54 | ### Documentation |
80 | 55 |
|
81 | | -<!-- Major changes to documentation and policies. Small docs changes |
82 | | - don't need a changelog entry. --> |
83 | | - |
84 | 56 | - Use "Version X.Y.Z" headings in changelog for stable permalink anchors on ReadTheDocs |
85 | 57 | (#5063) |
86 | 58 | - Note in the editor integrations that the SublimeText `sublack` plugin is archived and |
|
0 commit comments