Skip to content

fix(shared): tighten tasks parameter type in delegate_formatter - #818

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
fix/code-quality/delegate-task-typeddict
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
fix/code-quality/delegate-task-typeddict

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Replace dict[str, Any] with dict[str, str] to match the SDK's DelegateAction type definition. This improves type safety and removes the unnecessary Any import.

Changes

  • Changed tasks: dict[str, Any] | None to tasks: dict[str, str] | None in format_delegate_title()
  • Changed the same in internal helper _format_delegate_tasks_title()
  • Removed unused Any import from typing

Related Issue

Addresses findings from #816

Testing

  • Linting passes (make lint)
  • Specific tests pass (tests/shared/test_delegate_formatter.py - 17 tests)
  • Pyright passes with 0 errors

This PR was automatically generated by the Code Quality Report workflow.

This PR was created by an AI agent (OpenHands) on behalf of the maintainers.

Replace dict[str, Any] with dict[str, str] to match the SDK's DelegateAction
type definition. This improves type safety and removes the unnecessary Any
import.

The tasks parameter maps agent IDs to task descriptions, both strings.

Addresses item from code quality report.

Closes #816

Co-authored-by: openhands <openhands@all-hands.dev>
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.

0 participants