]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
Release Note generator: fix type hints
authorFreddy <schro.sb@gmail.com>
Fri, 19 May 2023 15:05:02 +0000 (17:05 +0200)
committerFreddy <schro.sb@gmail.com>
Fri, 19 May 2023 15:05:02 +0000 (17:05 +0200)
misc/infrastructure/prepare_releasenotes.py

index 1ac8b88264a2c697e98355fb4ac40a385459105b..cc38622b2a152b584a5a9a8d98362d0c2358f3ab 100644 (file)
@@ -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