Skip to content

Key transfer tasks by Transfer class, drop setattr in QtSidebarSearch, and stop spelling own class names - #2267

Merged
trissim merged 1 commit into
mainfrom
refactor/qt-identity-and-bound7
Nov 24, 2026
Merged

trissim merged 1 commit into
mainfrom
refactor/qt-identity-and-bound7

Conversation

@trissim

@trissim trissim commented Nov 24, 2026

Copy link
Copy Markdown

Removes three restated_identity findings (BOUND-8, MEMB-4), one BOUND-7 setattr call, and one redundant local import asyncio:

  • src/toad/qt/window.py: key self._transfer_tasks directly by type[Transfer] (type(request)) instead of the declared_name string (NRA a6c019b787), and remove the redundant function-local import asyncio in start_transfer_task.
  • src/toad/client/sidebar_filter.py + src/toad/qt/sidebar_panel.py: add SidebarFilter.set_text(value: str) and connect self.textChanged.connect(search.set_text) directly instead of lambda text: setattr(search, "text", text) (BOUND-7); set QtSidebarPanelFrame's object name from type(self).__name__ (NRA c1812c77c6).
  • src/toad/client/command_draft.py: build the draft dataclass with type(self).__name__ instead of the bare string 'CommandDraft' (NRA 36daf77328).

Verified:

  • toad.qt.android.load_client() cold start: 1757 modules (agent_comms.comms=False, packaging=False).
  • QtSidebarSearch signal propagation into SidebarFilter verified under QT_QPA_PLATFORM=offscreen.
  • tools/qt_inherit_ratchet.py: 0 / 0 / 0 / 0 / 0; tools/shadow_check.py: 0; tools/guarded_imports.py: 0.
  • tests/guards/test_shared_frontend_members.py + test_qt_members_are_not_shadowed.py: 11 passed (3.80s).

@trissim
trissim merged commit e536acd into main Nov 24, 2026
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