Skip to content

style(agents): unquote ApprovalHandler annotation (resolve unused-import nit)#305

Merged
ancongui merged 1 commit into
mainfrom
fix/approvalhandler-unquote-awaitable
Jun 22, 2026
Merged

style(agents): unquote ApprovalHandler annotation (resolve unused-import nit)#305
ancongui merged 1 commit into
mainfrom
fix/approvalhandler-unquote-awaitable

Conversation

@ancongui

Copy link
Copy Markdown
Contributor

Trivial follow-up to PR #304. The Awaitable in the ApprovalHandler type alias sat inside a quoted forward-reference, so github-code-quality flagged the collections.abc.Awaitable import as unused (ruff/pyright parse forward-refs and were clean). Unquoting the annotation makes Awaitable a genuine runtime reference — ApprovalHandler is a module-level assignment and all names are imported, so it evaluates fine. No behaviour change; 25 HITL tests + pyright/ruff clean.

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.
@ancongui ancongui enabled auto-merge June 22, 2026 10:09
@ancongui ancongui merged commit 8b49400 into main Jun 22, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant