Skip to content

fix: clean up unused variables and duplicate import across 6 modules#545

Open
Kailigithub wants to merge 1 commit into
lsdefine:mainfrom
Kailigithub:fix/lint-f841-f811-cleanup
Open

fix: clean up unused variables and duplicate import across 6 modules#545
Kailigithub wants to merge 1 commit into
lsdefine:mainfrom
Kailigithub:fix/lint-f841-f811-cleanup

Conversation

@Kailigithub
Copy link
Copy Markdown
Contributor

Changes

Clean up ruff F841 (unused variable) and F811 (redefined import) issues across 6 modules:

File Issue Fix
frontends/fsapp.py F841: event assigned but unused Prefix with _event
frontends/genericagent_acp_bridge.py F841: method assigned but unused Remove assignment
frontends/qtapp.py F841: e in except clause unused Use bare except Exception:
frontends/tui_v3.py F841 + F811: Keys fallback + duplicate dataclass import Add noqa comment + remove duplicate import
frontends/tuiapp.py F841: args in main() unused Prefix with _args
memory/autonomous_operation_sop/helper.py F841: errors list unused Remove initialization

Verification

  • ruff check --select F841,F811 on all 6 files → All checks passed
  • python3 -m py_compile on all 6 files → No syntax errors

- fsapp.py: prefix unused event variable with underscore
- genericagent_acp_bridge.py: remove unused method assignment
- qtapp.py: remove unused exception variable
- tui_v3.py: add noqa comment for intentional Keys fallback + remove duplicate dataclass import
- tuiapp.py: prefix unused args variable with underscore
- helper.py: remove unused errors list initialization
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