Skip to content

fix(tui): add explicit **kwargs: Any type hints to widget __init__ methods#781

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
fix/code-quality/kwargs-type-annotations
Open

fix(tui): add explicit **kwargs: Any type hints to widget __init__ methods#781
github-actions[bot] wants to merge 1 commit into
mainfrom
fix/code-quality/kwargs-type-annotations

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Adds explicit **kwargs: Any type annotations to all Textual widget __init__ methods for consistency and clarity.

Changes

  • Added **kwargs: Any type hint to 9 __init__ methods across 8 files
  • Added Any import where needed

Files Updated

  • tui/modals/history_search.py
  • tui/widgets/splash.py
  • tui/widgets/status_line.py (2 classes: WorkingStatusLine, InfoStatusLine)
  • tui/panels/mcp_side_panel.py
  • tui/panels/plan_side_panel.py
  • tui/panels/confirmation_panel.py
  • tui/core/state.py
  • tui/textual_app.py

Related Issue

Addresses findings from #780

Testing

  • Linting passes (make lint)
  • Tests pass (make test)

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

…methods

Addresses item from code quality report - adds type consistency for
**kwargs parameters in Textual widget subclasses.

Files updated:
- tui/modals/history_search.py
- tui/widgets/splash.py
- tui/widgets/status_line.py (2 classes)
- tui/panels/mcp_side_panel.py
- tui/panels/plan_side_panel.py
- tui/panels/confirmation_panel.py
- tui/core/state.py
- tui/textual_app.py

Closes #780

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