fix(resource-registry): remove type: ignore[override] suppressions from ResourceDagMixin #3238
No reviewers
Labels
No labels
auto/needs-reevaluation
controller-managed
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cleveragents/cleveragents-core!3238
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/resource-registry-dag-type-ignore-override"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Removes two unnecessary
# type: ignore[override]inline suppression comments from_resource_registry_dag.pythat violated the project'sCONTRIBUTING.mdpolicy prohibiting# type: ignoredirectives. Investigation confirmed the suppressions were never required — Pyright already accepts the mixin pattern without them.Changes
# type: ignore[override]fromlink_childinResourceDagMixin: the suppression was applied to the method signature using aself: RegistryHostProtocol annotation; Pyright accepts this pattern natively and the comment was redundant.# type: ignore[override]fromunlink_childinResourceDagMixin: same pattern and same rationale aslink_child— the suppression was unnecessary and masked no real type error.Design Decisions
self: RegistryHostProtocol annotation pattern used in both mixin methods is valid Python and is already understood correctly by Pyright. The suppressions were added at some earlier point either out of caution or due to a transient tooling issue, but they have not been necessary.nox -e typecheckremains clean. This avoids unnecessary churn and keeps the diff as small as possible.CONTRIBUTING.mdexplicitly prohibits# type: ignoredirectives. Retaining suppressions that are not needed is a direct violation of that policy, regardless of whether they cause functional harm.Testing
nox -e typecheck: 0 errors, 0 warnings, 0 informations ✅ — confirms the suppressions were genuinely unnecessary and their removal introduces no type regressionsModules Affected
src/cleveragents/application/services/_resource_registry_dag.py— only file changed; two inline suppression comments removed fromResourceDagMixin.link_childandResourceDagMixin.unlink_childRelated Issues
Closes #2830
Automated by CleverAgents Bot
Supervisor: Implementation | Agent: ca-issue-worker
# type: ignore[override]suppression in_resource_registry_dag.pyviolates CONTRIBUTING.md strict no-suppression rule #2830🔒 Review claimed by reviewer-pool-1 [claim-token: reviewer-pool-1-3238-1775372600]
Automated by CleverAgents Bot
Supervisor: PR Review | Agent: ca-continuous-pr-reviewer
# type: ignore[override]suppression in_resource_registry_dag.pyviolates CONTRIBUTING.md strict no-suppression rule #2830Independent Code Review: APPROVED ✅
Summary
This PR makes a clean, minimal, and correct fix: removing two unnecessary
# type: ignore[override]suppression comments fromResourceDagMixin.link_childandResourceDagMixin.unlink_childin_resource_registry_dag.py.Review Findings
Specification Alignment ✅
self: RegistryHostProtocol annotation pattern is valid and Pyright accepts it natively.Code Quality ✅
# type: ignore[override]comments.# type: ignoredirectives in the file.CI Verification ✅ (partial — still running)
lint: ✅ passedtypecheck: ✅ passed — confirms suppressions were genuinely unnecessaryquality: ✅ passedsecurity: ✅ passedbuild: ✅ passedhelm: ✅ passedunit_tests,integration_tests,e2e_tests,coverage: ⏳ still runningCommit Message ✅
fix(resource-registry): ...ISSUES CLOSED: #2830footer.PR Metadata ✅
Type/Refactorlabel present.Closes #2830in body.Test Adequacy ✅
link_childandunlink_childfunctionality.Security ✅
Verdict
Clean compliance fix. No concerns. Scheduling merge for when remaining CI checks complete.
Automated by CleverAgents Bot
Supervisor: PR Review | Agent: ca-pr-self-reviewer
# type: ignore[override]suppression in_resource_registry_dag.pyviolates CONTRIBUTING.md strict no-suppression rule #2830