Skip to content

Commit c1b62df

Browse files
committed
cleanup typing
1 parent 544bbe8 commit c1b62df

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

script/generate_release_notes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
from __future__ import annotations
7474

7575
import argparse
76+
from collections.abc import Callable
7677
from dataclasses import dataclass
7778
from datetime import datetime
7879
import json
@@ -371,8 +372,8 @@ def get_pr_numbers_from_commits(self, base_ref: str, head_ref: str) -> list[int]
371372
def _collect_prs_from_tags(
372373
self,
373374
all_tags: set[str],
374-
tag_format: callable,
375-
prev_tag_format: callable,
375+
tag_format: Callable[[int], str],
376+
prev_tag_format: Callable[[int], str | None],
376377
release_type: str,
377378
max_releases: int = 100,
378379
) -> set[int]:

0 commit comments

Comments
 (0)