From: Freddy Date: Fri, 19 May 2023 15:05:02 +0000 (+0200) Subject: Release Note generator: fix type hints X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=0c0c215300ab8325052a8025a340cf73d49dc05f Release Note generator: fix type hints --- 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