Skip to content

Bump black from 25.11.0 to 26.3.1#284

Open
dependabot[bot] wants to merge 2 commits intov1.x.xfrom
dependabot/pip/black-26.3.1
Open

Bump black from 25.11.0 to 26.3.1#284
dependabot[bot] wants to merge 2 commits intov1.x.xfrom
dependabot/pip/black-26.3.1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Mar 27, 2026

Bumps black from 25.11.0 to 26.3.1.

Release notes

Sourced from black's releases.

## 26.3.1 ### Stable style * Prevent Jupyter notebook magic masking collisions from corrupting cells by using exact-length placeholders for short magics and aborting if a placeholder can no longer be unmasked safely ([#5038](https://redirect.github.com/psf/black/issues/5038)) ### Configuration * Always hash cache filename components derived from `--python-cell-magics` so custom magic names cannot affect cache paths ([#5038](https://redirect.github.com/psf/black/issues/5038)) ### Blackd * Disable browser-originated requests by default, add configurable origin allowlisting and request body limits, and bound executor submissions to improve backpressure ([#5039](https://redirect.github.com/psf/black/issues/5039)) ## 26.3.0 ### Stable style * Don't double-decode input, causing non-UTF-8 files to be corrupted ([#4964](https://redirect.github.com/psf/black/issues/4964)) * Fix crash on standalone comment in lambda default arguments ([#4993](https://redirect.github.com/psf/black/issues/4993)) * Preserve parentheses when `# type: ignore` comments would be merged with other comments on the same line, preventing AST equivalence failures ([#4888](https://redirect.github.com/psf/black/issues/4888)) ### Preview style * Fix bug where `if` guards in `case` blocks were incorrectly split when the pattern had a trailing comma ([#4884](https://redirect.github.com/psf/black/issues/4884)) * Fix `string_processing` crashing on unassigned long string literals with trailing commas (one-item tuples) ([#4929](https://redirect.github.com/psf/black/issues/4929)) * Simplify implementation of the power operator `"hugging"` logic ([#4918](https://redirect.github.com/psf/black/issues/4918)) ### Packaging * Fix shutdown errors in PyInstaller builds on macOS by disabling multiprocessing in frozen environments ([#4930](https://redirect.github.com/psf/black/issues/4930)) ### Performance * Introduce winloop for windows as an alternative to uvloop ([#4996](https://redirect.github.com/psf/black/issues/4996)) * Remove deprecated function `uvloop.install()` in favor of `uvloop.new_event_loop()` ([#4996](https://redirect.github.com/psf/black/issues/4996)) * Rename `maybe_install_uvloop` function to `maybe_use_uvloop` to simplify loop installation and creation of either a uvloop/winloop eventloop or default eventloop ([#4996](https://redirect.github.com/psf/black/issues/4996)) ### Output

Changelog

Sourced from black's changelog.

## Version 26.3.1 ### Stable style * Prevent Jupyter notebook magic masking collisions from corrupting cells by using exact-length placeholders for short magics and aborting if a placeholder can no longer be unmasked safely ([#5038](https://redirect.github.com/psf/black/issues/5038)) ### Configuration * Always hash cache filename components derived from `--python-cell-magics` so custom magic names cannot affect cache paths ([#5038](https://redirect.github.com/psf/black/issues/5038)) ### Blackd * Disable browser-originated requests by default, add configurable origin allowlisting and request body limits, and bound executor submissions to improve backpressure ([#5039](https://redirect.github.com/psf/black/issues/5039)) ## Version 26.3.0 ### Stable style * Don't double-decode input, causing non-UTF-8 files to be corrupted ([#4964](https://redirect.github.com/psf/black/issues/4964)) * Fix crash on standalone comment in lambda default arguments ([#4993](https://redirect.github.com/psf/black/issues/4993)) * Preserve parentheses when `# type: ignore` comments would be merged with other comments on the same line, preventing AST equivalence failures ([#4888](https://redirect.github.com/psf/black/issues/4888)) ### Preview style * Fix bug where `if` guards in `case` blocks were incorrectly split when the pattern had a trailing comma ([#4884](https://redirect.github.com/psf/black/issues/4884)) * Fix `string_processing` crashing on unassigned long string literals with trailing commas (one-item tuples) ([#4929](https://redirect.github.com/psf/black/issues/4929)) * Simplify implementation of the power operator `"hugging"` logic ([#4918](https://redirect.github.com/psf/black/issues/4918)) ### Packaging * Fix shutdown errors in PyInstaller builds on macOS by disabling multiprocessing in frozen environments ([#4930](https://redirect.github.com/psf/black/issues/4930)) ### Performance * Introduce winloop for windows as an alternative to uvloop ([#4996](https://redirect.github.com/psf/black/issues/4996)) * Remove deprecated function `uvloop.install()` in favor of `uvloop.new_event_loop()` ([#4996](https://redirect.github.com/psf/black/issues/4996)) * Rename `maybe_install_uvloop` function to `maybe_use_uvloop` to simplify loop installation and creation of either a uvloop/winloop eventloop or default eventloop ([#4996](https://redirect.github.com/psf/black/issues/4996))

Note: Black 26.3.1 introduced a formatting change that removes blank lines after docstrings at the top of files. This PR has been fixed by applying the automatic reformatting.

All checks pass:

  • ✅ Formatting (black 26.3.1 + isort)
  • ✅ mypy type checking
  • ✅ flake8 linting
  • ✅ pytest tests (both min and max dependencies)

@dependabot dependabot bot added part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) type:tech-debt Improves the project without visible changes for users labels Mar 27, 2026
@dependabot dependabot bot requested review from a team as code owners March 27, 2026 11:08
@dependabot dependabot bot requested review from stefan-brus-frequenz and removed request for a team March 27, 2026 11:08
@dependabot dependabot bot added part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) type:tech-debt Improves the project without visible changes for users labels Mar 27, 2026
@dependabot dependabot bot requested review from florian-wagner-frequenz and removed request for a team March 27, 2026 11:08
@github-actions github-actions bot added the auto-merged Auto-approved Dependabot PRs label Mar 27, 2026
@github-actions github-actions bot enabled auto-merge March 27, 2026 11:08
@dependabot dependabot bot force-pushed the dependabot/pip/black-26.3.1 branch from 08b9607 to f5f45a2 Compare March 27, 2026 15:42
github-actions[bot]
github-actions bot previously approved these changes Mar 27, 2026
Bumps [black](https://github.com/psf/black) from 25.11.0 to 26.3.1.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@25.11.0...26.3.1)

---
updated-dependencies:
- dependency-name: black
  dependency-version: 26.3.1
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
github-actions[bot]
github-actions bot previously approved these changes Mar 30, 2026
Black 26.3.1 reformatting removed blank lines after docstrings at the top of files.
This change applies the automatic reformatting to keep the code consistent.

Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
@Marenz
Copy link
Copy Markdown
Contributor

Marenz commented Mar 31, 2026

The PR has been fixed. Black 26.3.1 introduced a change that removes blank lines after docstrings at the top of files. The fix applies the automatic reformatting to keep the code consistent with the new version.

All checks pass:

  • ✅ Formatting (black 26.3.1 + isort)
  • ✅ mypy type checking
  • ✅ flake8 linting
  • ✅ pytest tests (both min and max dependencies)

@github-actions github-actions bot added the part:test-utils Affects the test utilities label Mar 31, 2026
@Marenz Marenz added the cmd:skip-release-notes It is not necessary to update release notes for this PR label Mar 31, 2026
@Marenz Marenz requested a review from llucax March 31, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merged Auto-approved Dependabot PRs cmd:skip-release-notes It is not necessary to update release notes for this PR part:dispatcher part:test-utils Affects the test utilities part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) type:tech-debt Improves the project without visible changes for users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant