Repository navigation
refactor(610): remove the deprecated confusion_matrix_calculator shim - #613
Open
WilliamK112 wants to merge 1 commit into
Open
WilliamK112 wants to merge 1 commit into
WilliamK112 wants to merge 1 commit into
Conversation
awslabs#596 restored the module for 1.0.x with a DeprecationWarning promising removal in 1.1.0. Nothing in Stickler imports it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vawsgit
approved these changes
Nov 24, 2026
vawsgit
left a comment
Contributor
There was a problem hiding this comment.
✅ LGTM!
No medium or high findings. Verified at head d7c4482, which sits directly on current dev (merge-base 567cf2c = origin/dev).
What was checked
- Scope.
git diff --stat origin/dev...d7c4482touches 3 files: the shim module (−124), its test (−43), andCHANGELOG.md(+7). No config, CI or lockfile changes, so nothing ondevis reverted on merge. - Removal matches the promise. The 1.0.2
### Deprecatedentry says the shim "will be removed in 1.1.0" (CHANGELOG.md#L84-L89). Issue #610 is on the1.1.0milestone, so this is the planned removal, not an unplanned break. The new### Removedbullet (CHANGELOG.md#L12-L17) links #610.Fixes #610is correct: the PR delivers the module deletion, the test deletion and the CHANGELOG bullet. - No remaining references.
rg 'confusion_matrix_calculator|ConfusionMatrixCalculator|classify_field_for_confusion_matrix'oversrc/,tests/,docs/,examples/,README.mdandmkdocs.ymlfinds only docs/structured_model_REFACTORING.md#L159, which says #406 removed the file. That sentence is accurate again once the shim is gone, so leaving it is fine. - Import fails cleanly.
import stickler.structured_object_evaluator.models.confusion_matrix_calculatorraisesModuleNotFoundError. Tested against the PR worktree'ssrc/(path printed withinspect.getfile(stickler)). - Helpers still used.
field_helper,null_helperandthreshold_helper, which the shim imported, are still imported elsewhere insrc/. - Suite. With CI's extras (
--extra llm --extra bert),uv run pytest -q -n auto: 5978 passed, 3 skipped, 1 xfailed. The 6 fewer tests than before are the deleted shim tests.tests/test_docs_build.py: 77 passed, no skips, including the docs-drift tests that read the CHANGELOG's newest section.ruff check .: all checks passed. - Mutation testing. Not applicable: the PR adds or changes no tests.
Non-blocking note
- CI has not run on this fork PR. The workflow runs for
d7c4482areaction_requiredand need a maintainer to approve them. Let them go green before merging.
This branch has not been deployed
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.
Issue #, if available: Fixes #610
Description of changes:
#596 restored
stickler.structured_object_evaluator.models.confusion_matrix_calculatoras a deprecated shim for 1.0.x, warning that it "will be removed in 1.1.0". Nothing in Stickler imports it, so this PR removes it:src/stickler/structured_object_evaluator/models/confusion_matrix_calculator.pyandtests/structured_object_evaluator/test_confusion_matrix_calculator_shim.py;### Removedbullet under[Unreleased]inCHANGELOG.md.git grep confusion_matrix_calculatornow finds the two CHANGELOG bullets and one sentence indocs/structured_model_REFACTORING.md. That sentence says #406 removedconfusion_matrix_calculator.py, which is true again once the shim is gone, so I left it. I can reword it if you'd rather the filename appear only in the CHANGELOG.Checks, on
devat 567cf2c:uv run pytest -qgives 5,931 passed, 13 skipped, 1 xfailed. The 6 fewer passes are the deleted shim tests. The 30 failures are the same onesdevhas on this Windows machine (HTML report, deep-nesting timeout, printer and docs-drift tests), and CI is the reference for those.Written with Claude Code.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
🤖 Generated with Claude Code