From 0c0c215300ab8325052a8025a340cf73d49dc05f Mon Sep 17 00:00:00 2001 From: Freddy Date: Fri, 19 May 2023 17:05:02 +0200 Subject: [PATCH] Release Note generator: fix type hints --- misc/infrastructure/prepare_releasenotes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/infrastructure/prepare_releasenotes.py b/misc/infrastructure/prepare_releasenotes.py index 1ac8b882..cc38622b 100644 --- a/misc/infrastructure/prepare_releasenotes.py +++ b/misc/infrastructure/prepare_releasenotes.py @@ -94,7 +94,7 @@ def process_description(description: str) -> str: -def process(timestamp: datetime, data: list[dict]) -> dict[MR_TYPE, dict[str, MergeRequestInfo]]: +def process(timestamp: datetime, data: list[dict]) -> dict[MR_TYPE, dict[str, list[MergeRequestInfo]]]: # extract type, size and topic from labels for easier filtering/ordering # extract short description from description # extract author->name @@ -156,7 +156,7 @@ def process(timestamp: datetime, data: list[dict]) -> dict[MR_TYPE, dict[str, Me return processed_data -def draft_releasenotes(fp: TextIO, data: dict[MR_TYPE, dict[str, MergeRequestInfo]]) -> None: +def draft_releasenotes(fp: TextIO, data: dict[MR_TYPE, dict[str, list[MergeRequestInfo]]]) -> None: fp.writelines(["Release Notes\n", "===\n", "\n"]) for mr_type, sectioned_mr_data in data.items(): type_written = False -- 2.39.2