Repository navigation
Apply NRA goal-sweep codemods: promote acyclic hidden imports and drop 3 name-only subclasses - #2265
Merged
Merged
Conversation
…p 3 name-only subclasses
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.
Applied NRA (
da434f76) sequential refactor goals (hidden_import_promotion,false_distinction_erasure --codemod-goal-detector name_only_subclass) onsrc/toad/{qt,client}, keeping the 5 intentional Android splash/remote and shared-client Textual boundary modules (qt/android.py,qt/client_start.py,qt/main.py,client/committed_presentation.py,client/session_history_details.py) untouched:false_distinction_erasure):src/toad/client/connection.py: deleteRemoteUserMissingandRemoteRouteNotSelectable(differed fromRuntimeErroronly by name, never caught/tested anywhere).src/toad/client/mention_completion.py+src/toad/widgets/channel_prompt.py: deleteNoMention(empty subclass ofMentionCompletion, never tested/dispatched on).hidden_import_promotion):src/toad/client/{context_intent,history_changes,view_binding_protocols}.py: promote 9 acyclicTYPE_CHECKING/function-local imports (ContextNode,DetachedInspection,InspectionState,SessionIdentity,EventSourceKey,FragmentKey,HistoryFragment,TranscriptFragment,PreparedPageSource,PreparedTranscriptPage,SessionScope,TranscriptHistoryContract,ThreadRowsChanged).src/toad/qt/{agent_surface,bus_switcher,keymap_screen,settings_screen}.py: promote acyclicQtHistoryWindow,CoreEventStream,QtToadApp, andBusRow/KeptLines/OpenSection/BusAddress/ConversationRowsimports; drop now-deadself._BusRow/self._KeptLines/self._OpenSectionstashes inQtBusSwitcher.Verified:
toad.qt.androidpre-splash: 253 modules (toad.qt.window=False,agent_comms.comms=False,packaging=False).toad.qt.android.load_client()post-load: 1757 modules (agent_comms.comms=False,packaging=False); all 10 touched modules import cleanly.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.92s).