Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: move warning filter changelog entry to Unreleased
Signed-off-by: Alex <alex.castillog33@gmail.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
  • Loading branch information
pcbeingused33 and claude committed Nov 28, 2026
commit faf35aeeccd2c64f82e7d3324c61416b904dce21
11 changes: 6 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,12 @@ Each release links to full notes on the
the Evaluation guide's snippet no longer reads `similarity_score` on false
alarms and false negatives.

- The docs recipe for silencing the `auroc_confidence_metric`
`DeprecationWarning` never matched it (it filtered on the comparison engine
module). It now filters by message, adds the pytest `filterwarnings` form, and
names the second `UserWarning` that `compare_with(add_confidence_metrics=True)`
emits.

## [1.0.2] - 2026-11-20

### Changed
Expand Down Expand Up @@ -337,11 +343,6 @@ Each release links to full notes on the

### Fixed

- The docs recipe for silencing the `auroc_confidence_metric`
`DeprecationWarning` never matched it (it filtered on the comparison engine
module). It now filters by message, adds the pytest `filterwarnings` form, and
names the second `UserWarning` that `compare_with(add_confidence_metrics=True)`
emits.
- `StructuredModel.from_json` no longer forces the first model arm of a
`Union[A, B, None]` field: a dict is now left for pydantic's union validation,
so it resolves to the same arm as `model_validate`
Expand Down
11 changes: 6 additions & 5 deletions tests/test_confidence_warning_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ def _recorded(*filters):


def test_without_filters_both_warnings_are_emitted():
categories = {w.category for w in _recorded()}
assert {DeprecationWarning, UserWarning} <= categories
messages = [str(w.message) for w in _recorded()]
for warning_filter in (AUROC, SINGLE_DOC):
assert any(m.startswith(warning_filter["message"]) for m in messages)


def test_documented_filters_silence_both_warnings():
Expand All @@ -50,6 +51,6 @@ def test_documented_filters_silence_both_warnings():


def test_auroc_filter_leaves_the_user_warning():
categories = [w.category for w in _recorded(AUROC)]
assert DeprecationWarning not in categories
assert UserWarning in categories
messages = [str(w.message) for w in _recorded(AUROC)]
assert not any(m.startswith(AUROC["message"]) for m in messages)
assert any(m.startswith(SINGLE_DOC["message"]) for m in messages)