fix(tui): add explicit **kwargs: Any type hints to widget __init__ methods#781
Open
github-actions[bot] wants to merge 1 commit into
Open
fix(tui): add explicit **kwargs: Any type hints to widget __init__ methods#781github-actions[bot] wants to merge 1 commit into
**kwargs: Any type hints to widget __init__ methods#781github-actions[bot] wants to merge 1 commit into
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds explicit
**kwargs: Anytype annotations to all Textual widget__init__methods for consistency and clarity.Changes
**kwargs: Anytype hint to 9__init__methods across 8 filesAnyimport where neededFiles Updated
tui/modals/history_search.pytui/widgets/splash.pytui/widgets/status_line.py(2 classes: WorkingStatusLine, InfoStatusLine)tui/panels/mcp_side_panel.pytui/panels/plan_side_panel.pytui/panels/confirmation_panel.pytui/core/state.pytui/textual_app.pyRelated Issue
Addresses findings from #780
Testing
make lint)make test)This PR was automatically generated by the Code Quality Report workflow.