From: Freddy Date: Fri, 19 May 2023 15:49:48 +0000 (+0200) Subject: Release Note generator: add a few type hints X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=253855041332bc0c9fb72d6cdd7b5cf2e95cbfd1;p=xonotic%2Fxonotic.git Release Note generator: add a few type hints --- 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