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"