From 1351473a4a0e885d58698953d2e11ba3f409f403 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 May 2026 12:35:38 +0000 Subject: [PATCH 1/2] Bump black from 25.9.0 to 26.3.1 Bumps [black](https://github.com/psf/black) from 25.9.0 to 26.3.1. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/25.9.0...26.3.1) --- updated-dependencies: - dependency-name: black dependency-version: 26.3.1 dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6ab44b9d..3112a481 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,10 +44,10 @@ dev-flake8 = [ "pydoclint == 0.7.6", "pydocstyle == 6.3.0", ] -dev-formatting = ["black == 25.9.0", "isort == 8.0.1"] +dev-formatting = ["black == 26.3.1", "isort == 8.0.1"] dev-mkdocs = [ "Markdown == 3.10.2", - "black == 25.9.0", + "black == 26.3.1", "frequenz-repo-config[lib] == 0.17.0", "markdown-callouts == 0.4.0", "markdown-svgbob == 202406.1023", From 5151376e33a731467c54e28bf9e712a4a571182d Mon Sep 17 00:00:00 2001 From: "frequenz-auto-dependabot[bot]" <261417025+frequenz-auto-dependabot[bot]@users.noreply.github.com> Date: Mon, 4 May 2026 12:35:58 +0000 Subject: [PATCH 2/2] Apply migration from 25.9.0 to 26.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit === v26.3.1 ========================================================= Source: inline script Collecting black==26.3.1 Downloading black-26.3.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (91 kB) Collecting click>=8.0.0 (from black==26.3.1) Downloading click-8.3.3-py3-none-any.whl.metadata (2.6 kB) Collecting mypy-extensions>=0.4.3 (from black==26.3.1) Downloading mypy_extensions-1.1.0-py3-none-any.whl.metadata (1.1 kB) Collecting packaging>=22.0 (from black==26.3.1) Downloading packaging-26.2-py3-none-any.whl.metadata (3.5 kB) Collecting pathspec>=1.0.0 (from black==26.3.1) Downloading pathspec-1.1.1-py3-none-any.whl.metadata (14 kB) Collecting platformdirs>=2 (from black==26.3.1) Downloading platformdirs-4.9.6-py3-none-any.whl.metadata (4.7 kB) Collecting pytokens~=0.4.0 (from black==26.3.1) Downloading pytokens-0.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (3.8 kB) Downloading black-26.3.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 74.5 MB/s 0:00:00 Downloading pytokens-0.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (268 kB) Downloading click-8.3.3-py3-none-any.whl (110 kB) Downloading mypy_extensions-1.1.0-py3-none-any.whl (5.0 kB) Downloading packaging-26.2-py3-none-any.whl (100 kB) Downloading pathspec-1.1.1-py3-none-any.whl (57 kB) Downloading platformdirs-4.9.6-py3-none-any.whl (21 kB) Installing collected packages: pytokens, platformdirs, pathspec, packaging, mypy-extensions, click, black Successfully installed black-26.3.1 click-8.3.3 mypy-extensions-1.1.0 packaging-26.2 pathspec-1.1.1 platformdirs-4.9.6 pytokens-0.4.1 [notice] A new release of pip is available: 26.0.1 -> 26.1 [notice] To update, run: pip install --upgrade pip reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/src/frequenz/channels/experimental/_with_previous.py reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/tests/experimental/test_pipe.py reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/src/frequenz/channels/experimental/_grouping_latest_value_cache.py reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/tests/test_file_watcher.py reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/tests/test_anycast.py reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/tests/test_timer_integration.py reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/tests/test_broadcast.py reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/tests/test_timer.py All done! ✨ 🍰 ✨ 8 files reformatted, 40 files left unchanged. The migration completed successfully. --- .../channels/experimental/_grouping_latest_value_cache.py | 1 - src/frequenz/channels/experimental/_with_previous.py | 1 - tests/experimental/test_pipe.py | 1 - tests/test_anycast.py | 1 - tests/test_broadcast.py | 1 - tests/test_file_watcher.py | 1 - tests/test_timer.py | 1 - tests/test_timer_integration.py | 1 - 8 files changed, 8 deletions(-) diff --git a/src/frequenz/channels/experimental/_grouping_latest_value_cache.py b/src/frequenz/channels/experimental/_grouping_latest_value_cache.py index 2c22093b..0606c520 100644 --- a/src/frequenz/channels/experimental/_grouping_latest_value_cache.py +++ b/src/frequenz/channels/experimental/_grouping_latest_value_cache.py @@ -3,7 +3,6 @@ """The GroupingLatestValueCache caches the latest values in a receiver grouped by key.""" - import asyncio from collections.abc import ( Callable, diff --git a/src/frequenz/channels/experimental/_with_previous.py b/src/frequenz/channels/experimental/_with_previous.py index 5df2b124..75d418ad 100644 --- a/src/frequenz/channels/experimental/_with_previous.py +++ b/src/frequenz/channels/experimental/_with_previous.py @@ -3,7 +3,6 @@ """Composable predicate to cache and compare with the previous message.""" - from collections.abc import Callable from typing import Final, Generic, TypeGuard diff --git a/tests/experimental/test_pipe.py b/tests/experimental/test_pipe.py index 6775a4d8..f0158e14 100644 --- a/tests/experimental/test_pipe.py +++ b/tests/experimental/test_pipe.py @@ -3,7 +3,6 @@ """Tests for the Pipe class.""" - import asyncio import typing from contextlib import AsyncExitStack, aclosing, closing diff --git a/tests/test_anycast.py b/tests/test_anycast.py index 140a122f..38da03d6 100644 --- a/tests/test_anycast.py +++ b/tests/test_anycast.py @@ -3,7 +3,6 @@ """Tests for the Channel implementation.""" - import asyncio import pytest diff --git a/tests/test_broadcast.py b/tests/test_broadcast.py index 457e0659..7035250b 100644 --- a/tests/test_broadcast.py +++ b/tests/test_broadcast.py @@ -3,7 +3,6 @@ """Tests for the Broadcast implementation.""" - import asyncio from dataclasses import dataclass from typing import TypeGuard, assert_never diff --git a/tests/test_file_watcher.py b/tests/test_file_watcher.py index 720de807..b7cf1ef5 100644 --- a/tests/test_file_watcher.py +++ b/tests/test_file_watcher.py @@ -3,7 +3,6 @@ """Tests for `channel.FileWatcher`.""" - import pathlib from collections.abc import AsyncGenerator, Iterator, Sequence from typing import Any diff --git a/tests/test_timer.py b/tests/test_timer.py index f0909db0..3b052aa1 100644 --- a/tests/test_timer.py +++ b/tests/test_timer.py @@ -3,7 +3,6 @@ """Tests for the timer.""" - import asyncio import enum import re diff --git a/tests/test_timer_integration.py b/tests/test_timer_integration.py index 92f248f4..6f99e252 100644 --- a/tests/test_timer_integration.py +++ b/tests/test_timer_integration.py @@ -3,7 +3,6 @@ """Integration tests for the timer.""" - import asyncio from datetime import timedelta