From 372261b453026565f13fc3d5950118ceb4efad5f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2026 15:41:42 +0000 Subject: [PATCH 1/2] Bump the minor group across 1 directory with 4 updates Bumps the minor group with 4 updates in the / directory: [asyncclick](https://github.com/python-trio/asyncclick), [tzlocal](https://github.com/regebro/tzlocal), [pytest](https://github.com/pytest-dev/pytest) and [setuptools-scm](https://github.com/pypa/setuptools-scm). Updates `asyncclick` from 8.3.0.7 to 8.4.2.1 - [Changelog](https://github.com/python-trio/asyncclick/blob/main/CHANGES.md) - [Commits](https://github.com/python-trio/asyncclick/commits) Updates `tzlocal` from 5.3.1 to 5.4.4 - [Changelog](https://github.com/regebro/tzlocal/blob/master/CHANGES.txt) - [Commits](https://github.com/regebro/tzlocal/compare/5.3.1...5.4.4) Updates `pytest` from 9.0.3 to 9.1.1 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/9.0.3...9.1.1) Updates `setuptools-scm` from 10.0.5 to 10.2.0 - [Release notes](https://github.com/pypa/setuptools-scm/releases) - [Changelog](https://github.com/pypa/setuptools-scm/blob/main/RELEASE_SYSTEM.md) - [Commits](https://github.com/pypa/setuptools-scm/compare/setuptools-scm-v10.0.5...setuptools-scm-v10.2.0) --- updated-dependencies: - dependency-name: asyncclick dependency-version: 8.4.2.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: pytest dependency-version: 9.1.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: setuptools-scm dependency-version: 10.2.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: tzlocal dependency-version: 5.4.4 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor ... Signed-off-by: dependabot[bot] --- pyproject.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 114052e..9cb4b6e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ [build-system] requires = [ "setuptools == 82.0.1", - "setuptools_scm[toml] == 10.0.5", + "setuptools_scm[toml] == 10.2.0", "frequenz-repo-config[lib] == 0.18.0", ] build-backend = "setuptools.build_meta" @@ -55,10 +55,10 @@ email = "floss@frequenz.com" [project.optional-dependencies] cli = [ - "asyncclick == 8.3.0.7", + "asyncclick == 8.4.2.1", "prompt-toolkit == 3.0.52", "parsedatetime == 2.6", - "tzlocal == 5.3.1", + "tzlocal == 5.4.4", ] dev-flake8 = [ @@ -99,7 +99,7 @@ dev-pylint = [ "frequenz-api-dispatch == 1.0.0", ] dev-pytest = [ - "pytest == 9.0.3", + "pytest == 9.1.1", "frequenz-repo-config[extra-lint-examples] == 0.18.0", "pytest-mock == 3.15.1", "pytest-asyncio == 1.4.0", From 9af839acb0636a9f578c4aef837a77961bd5dbb3 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 16 Jul 2026 13:05:54 +0200 Subject: [PATCH 2/2] Fix new mypy issues If looks like `asyncclick` got better type annotations so now we need to provide Generic arguments to `click.ParamType`. Signed-off-by: Leandro Lucarella --- src/frequenz/client/dispatch/_cli_types.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/frequenz/client/dispatch/_cli_types.py b/src/frequenz/client/dispatch/_cli_types.py index 5ae8b7d..4b83fdf 100644 --- a/src/frequenz/client/dispatch/_cli_types.py +++ b/src/frequenz/client/dispatch/_cli_types.py @@ -29,7 +29,7 @@ # pylint: disable=inconsistent-return-statements -class FuzzyDateTime(click.ParamType): +class FuzzyDateTime(click.ParamType[datetime | Literal["NOW"] | None]): """Try to parse a string as a datetime. The parser is very permissive and can handle a wide range of time expressions. @@ -73,7 +73,7 @@ def convert( ) -class FuzzyTimeDelta(click.ParamType): +class FuzzyTimeDelta(click.ParamType[timedelta]): """Try to parse a string as a timedelta. Uses parsedatetime and tries to parse it as relative datetime first that @@ -118,7 +118,7 @@ def convert( ) -class FuzzyIntRange(click.ParamType): +class FuzzyIntRange(click.ParamType[list[int]]): """Try to parse a string as a simple integer range. Possible formats: @@ -154,7 +154,7 @@ def convert( self.fail(f"Invalid integer range: {value}", param, ctx) -class TargetComponentParamType(click.ParamType): +class TargetComponentParamType(click.ParamType[TargetIds | TargetCategories]): """Click parameter type for targets.""" name = "target" @@ -236,7 +236,7 @@ def enum_from_str( ) -class JsonDictParamType(click.ParamType): +class JsonDictParamType(click.ParamType[dict[str, Any]]): """Click parameter type for JSON strings.""" name = "json"