Skip to content

Commit

Permalink
Correct typing issue caught by mypy 1.3+
Browse files Browse the repository at this point in the history
  • Loading branch information
voetberg authored and rdimaio committed Dec 19, 2024
1 parent aea723e commit 66d8ea7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/generate_release_notes_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"


Expand Down

0 comments on commit 66d8ea7

Please sign in to comment.