Skip to content

Apply 10 clean NRA codemod recipes (5 cycle cuts, 3 empty subclasses, 1 retype, 1 promote) - #2358

Merged
trissim merged 1 commit into
mainfrom
nra/apply-10-clean-recipes
Nov 28, 2026
Merged

trissim merged 1 commit into
mainfrom
nra/apply-10-clean-recipes

Conversation

@trissim

@trissim trissim commented Nov 28, 2026

Copy link
Copy Markdown

Mechanically applied via nominal-refactor-advisor --codemod-apply src (with NRA #644 live in core-1c20b52e3), excluding the 6 promote_hidden_imports recipes that cross Toad Qt/Textual or splash-screen boundaries:

  • 5 cut_hidden_cycle: toad.acp.session_binding, toad.client.block_claim, toad.core.link_context_changed, toad.cursor_movement, toad.publication_work
  • 3 redirect_empty_subclass: LoginNotReady, ApplicationNotRunningError, ApplicationStartupObserverAlreadyInstalled
  • 1 retype_type_only_reads: toad.widgets.terminal_tool (AttachedSurfaceBinding -> ViewSurfaceBinding)
  • 1 promote_hidden_imports: toad.render_processes
  • Updated 9 test files whose imports pointed at the pre-cut modules.

Verified:

  • 105/105 focused tests green across all affected test modules
  • tools/qt_inherit_ratchet.py: 0/0/0/0/0
  • REL_IMPORTS=0

… 1 retype, 1 promote)

Applied mechanically via nominal-refactor-advisor --codemod-apply src
against core-1c20b52e3 (carrying NRA #644):
- cut_hidden_cycle (5): toad.acp.session_binding, toad.client.block_claim,
  toad.core.link_context_changed, toad.cursor_movement, toad.publication_work
- redirect_empty_subclass (3): LoginNotReady, ApplicationNotRunningError,
  ApplicationStartupObserverAlreadyInstalled
- retype_type_only_reads (1): toad.widgets.terminal_tool (AttachedSurfaceBinding -> ViewSurfaceBinding)
- promote_hidden_imports (1): toad.render_processes

Updated 9 test files for symbols moved by cut_hidden_cycle.
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