From 66d8ea79146d3c2277ca12613a443cb2c44670ea Mon Sep 17 00:00:00 2001 From: voetberg Date: Wed, 18 Dec 2024 16:18:07 -0600 Subject: [PATCH] Correct typing issue caught by mypy 1.3+ --- tools/generate_release_notes_index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/generate_release_notes_index.py b/tools/generate_release_notes_index.py index ffb8322529..403d03d369 100755 --- a/tools/generate_release_notes_index.py +++ b/tools/generate_release_notes_index.py @@ -4,6 +4,7 @@ from collections import defaultdict from functools import cmp_to_key, partial from pathlib import Path +from typing import Union import jinja2 @@ -150,7 +151,7 @@ def combined_post_rc(self) -> int: return A.major - B.major -def get_release_link(path: Path, version: str) -> str: +def get_release_link(path: Union[str, Path], version: str) -> str: return f"{path}/{version}.md"