From 0867273893584d0da77f94643e7c5d225a587c6a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 18:42:20 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.7 → v0.15.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.7...v0.15.9) - [github.com/pre-commit/mirrors-mypy: v1.19.1 → v1.20.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.19.1...v1.20.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7d6e2f53..f41cb98a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -78,7 +78,7 @@ repos: # More information can be found in its documentation: # https://docs.astral.sh/ruff/ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.7 + rev: v0.15.9 hooks: - id: ruff-check name: ruff @@ -106,7 +106,7 @@ repos: # The project's documentation can be found at: # https://mypy.readthedocs.io/en/stable/index.html - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.19.1 + rev: v1.20.0 hooks: - id: mypy exclude: ^tests/.*$ From 80d8c22de5efabdcdd8748fe6813b6f242ea4491 Mon Sep 17 00:00:00 2001 From: Casper Welzel Andersen Date: Wed, 8 Apr 2026 16:30:16 +0200 Subject: [PATCH 2/2] Ensure we always have a mapping to unpack with ** --- oteapi_dlite/strategies/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oteapi_dlite/strategies/convert.py b/oteapi_dlite/strategies/convert.py index dbd8cfa6..45642491 100644 --- a/oteapi_dlite/strategies/convert.py +++ b/oteapi_dlite/strategies/convert.py @@ -164,7 +164,7 @@ def get(self) -> DLiteResult: config = self.function_config.configuration module = importlib.import_module(config.module_name, config.package) function = getattr(module, config.function_name) - kwargs = config.kwargs + kwargs = config.kwargs or {} coll = get_collection(config.collection_id)