From 7d0abe8437cdc60fb96a9f550a4998e17810f599 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 3 Jun 2026 15:21:58 +0000 Subject: [PATCH 1/3] Bump mypy from 1.19.1 to 2.1.0 Bumps [mypy](https://github.com/python/mypy) from 1.19.1 to 2.1.0. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.19.1...v2.1.0) --- updated-dependencies: - dependency-name: mypy dependency-version: 2.1.0 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ae5e9bd26..deb8d5e6a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,7 +69,7 @@ dev-mkdocs = [ "frequenz-repo-config[lib] == 0.18.0", ] dev-mypy = [ - "mypy == 1.19.1", + "mypy == 2.1.0", "types-Markdown == 3.10.2.20260518", "types-protobuf == 7.34.1.20260518", "types-setuptools == 82.0.0.20260518", From c02177e8c6f4722cefa374ec8e23d67367bf50f4 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 4 Jun 2026 17:23:50 +0200 Subject: [PATCH 2/3] Remove now unnecessary type: ignore comment Signed-off-by: Leandro Lucarella --- tests/timeseries/test_moving_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/timeseries/test_moving_window.py b/tests/timeseries/test_moving_window.py index dfba44015..90751190e 100644 --- a/tests/timeseries/test_moving_window.py +++ b/tests/timeseries/test_moving_window.py @@ -212,7 +212,7 @@ async def test_access_window_by_ts_slice() -> None: await push_logical_meter_data(sender, range(0, 5)) time_start = UNIX_EPOCH + timedelta(seconds=3) time_end = time_start + timedelta(seconds=2) - assert np.array_equal(window[time_start:time_end], np.array([3.0, 4.0])) # type: ignore + assert np.array_equal(window[time_start:time_end], np.array([3.0, 4.0])) assert np.array_equal(window.window(dt(3), dt(5)), np.array([3.0, 4.0])) assert np.array_equal(window.window(dt(3), dt(3)), np.array([])) # Window also supports slicing with indices outside allowed range From b744051daf8de8aed98d8530e67142125e67887d Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 4 Jun 2026 17:33:16 +0200 Subject: [PATCH 3/3] Add missing type hint for global variable Signed-off-by: Leandro Lucarella --- examples/load_shedding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/load_shedding.py b/examples/load_shedding.py index b83363e17..9e588e7e8 100644 --- a/examples/load_shedding.py +++ b/examples/load_shedding.py @@ -22,7 +22,7 @@ from frequenz.sdk.timeseries import Sample # Mock configuration -CONF_STATE = {} +CONF_STATE: dict[str, float] = {} def mock_set_consumer(name: str, power: float) -> None: