From e056721565d041f1287ff03c692e1c7722aeb4f1 Mon Sep 17 00:00:00 2001 From: Andres Contreras Date: Mon, 22 Jun 2026 12:08:56 +0200 Subject: [PATCH] style(agents): unquote ApprovalHandler return annotation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Awaitable in the ApprovalHandler type alias was inside a quoted forward-ref, so a naive unused-import check (github-code-quality) flagged the collections.abc Awaitable import as unused (ruff/pyright saw it fine). Unquote the annotation — ApprovalHandler is a runtime assignment and all names are imported, so it evaluates cleanly and Awaitable is now a genuine reference. No behaviour change. --- fireflyframework_agentic/agents/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fireflyframework_agentic/agents/base.py b/fireflyframework_agentic/agents/base.py index 38324283..fe671542 100644 --- a/fireflyframework_agentic/agents/base.py +++ b/fireflyframework_agentic/agents/base.py @@ -124,7 +124,7 @@ def _suggested_retry_delay(exc: BaseException) -> float | None: #: capability. Use ``requests.build_results(...)`` to construct the result. ApprovalHandler = Callable[ [RunContext[Any], DeferredToolRequests], - "DeferredToolResults | None | Awaitable[DeferredToolResults | None]", + DeferredToolResults | None | Awaitable[DeferredToolResults | None], ]