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

index cc38622b2a152b584a5a9a8d98362d0c2358f3ab..e23374bd85fa64cb6403c953f32b93aa0b10ffed 100644 (file)
@@ -29,7 +29,7 @@ MR_TYPE_PREFIX = "MR Content: "
 MR_SIZE_PREFIX = "MR Size::"
 
 MAIN_PROJECT_ID = 73434
-EXCLUDED_PROJECT_IDS = []
+EXCLUDED_PROJECT_IDS: list[int] = []
 TARGET_BRANCHES = ["master", "develop", "pending-release"]
 
 GROUP_NAME = "xonotic"
@@ -98,7 +98,7 @@ def process(timestamp: datetime, data: list[dict]) -> dict[MR_TYPE, dict[str, li
     # extract type, size and topic from labels for easier filtering/ordering
     # extract short description from description
     # extract author->name
-    processed_data = {mr_type: {} for mr_type in MR_TYPE}
+    processed_data: dict = {mr_type: {} for mr_type in MR_TYPE}
     for item in data:
         if item["project_id"] in EXCLUDED_PROJECT_IDS:
             continue