[BACKEND] Fix abstract signature to match its overrides #11515
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 249 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.330
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #11515"
general
weight: 0.35
harrisonGPU
BaseBackend.add_stageswas declared asadd_stages(self, stages, options),missing the
languageparameter. Every concrete backend already overrides itwith
languageincluded, e.g.:and the call site in
python/triton/compiler/compiler.pypasses it:so the abstract method's signature was simply stale. This causes static
type checkers (Pyright/Pylance) to flag every backend override as
"incompatible with base class" due to a positional parameter count
mismatch. Add the missing
language: Languageparameter to the abstractdeclaration so it matches actual usage and all existing overrides.
New contributor declaration
rules.
pre-commit run --from-ref origin/main --to-ref HEAD.- [ ] I have added tests.
-
/testforlittests-
/unittestfor C++ tests-
/python/testfor end-to-end tests- [x] This PR does not need a test because
it only corrects a stale typeannotation on an abstract method to match its existing overrides
(amd/nvidia/vulkan backends already implement it with the extra
parameter); there is no runtime behavior change to test.
- [x] I have not added any
littests.- [ ] The
littests I have added follow these best practices,including the "tests should be minimal" section. (Usually running Python code
and using the instructions it generates is not minimal.)