From 4648ba25605861393b7bc0c60cd35fe4b6dd8cda Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Mon, 2 Jun 2025 09:50:09 +0200 Subject: [PATCH] fixed type annotation --- manual_selection.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manual_selection.py b/manual_selection.py index 2812e89..b164611 100644 --- a/manual_selection.py +++ b/manual_selection.py @@ -87,7 +87,9 @@ def display_pr_info(entry: DatasetEntry, i: int, total: int, n_good: int): print(f"\nPull Request : {pr_url}\n") -def prompt_comment_suggestion(entry: DatasetEntry, sel: Selection | None, overwrite: bool) -> bool: +def prompt_comment_suggestion( + entry: DatasetEntry, sel: Optional[Selection], overwrite: bool +) -> bool: # reuse existing if available and not overwriting if not overwrite and sel is not None and sel.comment_suggests_change is not None: return sel.comment_suggests_change