From 253855041332bc0c9fb72d6cdd7b5cf2e95cbfd1 Mon Sep 17 00:00:00 2001 From: Freddy Date: Fri, 19 May 2023 17:49:48 +0200 Subject: [PATCH] Release Note generator: add a few 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 cc38622b..e23374bd 100644 --- a/misc/infrastructure/prepare_releasenotes.py +++ b/misc/infrastructure/prepare_releasenotes.py @@ -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 -- 2.39.2