Repository navigation
Hoist NRA-flagged defaults and drop QtContextExplorer isinstance tests - #2233
Merged
Merged
Conversation
…egorySelection, ReaderPosition, and drop QtContextExplorer isinstance tests - AgentPresentation.TURN_BINDING defaults to LocalTurnBinding (removes duplicate declarations on LocalAgentPresentation and ACPAgentPresentation). - AgentConnection.observe_thread_presentation defaults to no-op (removes identical empty overrides on AgentBase and NoAgentConnection); also switch NoAgentConnection.change_project/request_compaction to shared view.flash_error(). - CategorySelection.categories_changed defaults to no-op (removes identical empty overrides on CategoryFilterView and NoCategorySelection). - ReaderPosition.shifted defaults to return self (removes identical overrides on TailPosition and UnshownReader). - QtContextExplorer._on_selection/_on_expanded/_on_collapsed: check model is None instead of redundant isinstance(model, ContextNode) (clears 3 NRA own_type_test findings).
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
Clears five more
nominal_refactor_advisorfindings (7 files, -24 net lines):AgentPresentation.TURN_BINDING = LocalTurnBinding(agent_presentation.py): removes duplicate declarations onLocalAgentPresentationandACPAgentPresentation.AgentConnection.observe_thread_presentation(agent_binding.py,agent.py): default no-op removes identical empty overrides onAgentBaseandNoAgentConnection;NoAgentConnection.change_project/request_compactionnow use sharedview.flash_error().CategorySelection.categories_changed(category_selection.py,category_filter.py): default no-op removes identical empty overrides onCategoryFilterViewandNoCategorySelection.ReaderPosition.shifted(reader_position.py): defaults toreturn self, removing identical overrides onTailPositionandUnshownReader(whileArrivalPositionstill intentionally overridesFragmentPosition.shifted).QtContextExplorer(qt/context_panel.py): checkmodel is Noneinstead ofisinstance(model, ContextNode)in_on_selection/_on_expanded/_on_collapsed.Checks
tools/guarded_imports.py: 0pytest -q tests/guards/test_shared_hook_sequences.py tests/guards/test_shared_history_change.py tests/guards/test_deleted_interface_mechanisms.py: 52 passed.