Skip to content

Commit 23f37dd

Browse files
committed
wip: rerun coverage
1 parent aed5347 commit 23f37dd

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

pydantic_ai_slim/pydantic_ai/_parts_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def _get_active_partial_tag(
284284
"""
285285
if vendor_part_id is not None:
286286
for tag in self._partial_tags_list:
287-
if tag.vendor_part_id == vendor_part_id:
287+
if tag.vendor_part_id == vendor_part_id: # pragma: no branch
288288
return tag
289289

290290
if existing_part is not None:

tests/test_parts_manager_thinking_tags.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -155,21 +155,6 @@ class Case:
155155
# NOTE empty thinking is skipped entirely
156156
expected_flushed_events=[],
157157
),
158-
Case(
159-
name='incomplete_thinking_with_partial_closing_tag_triggers_final_flush',
160-
chunks=['<think>reasoning</'],
161-
expected_parts=[ThinkingPart('reasoning</')],
162-
expected_normal_events=[
163-
PartStartEvent(index=0, part=ThinkingPart('reasoning')),
164-
],
165-
# COVERAGE: This case covers models/__init__.py line 625: the `yield event` in chain_async_and_sync_iters.
166-
# When the stream ends with a partial closing tag ('</' that never completes to '</think>'),
167-
# final_flush() yields the buffered partial tag content as a PartDeltaEvent.
168-
# This exercises the `for event in iter2: yield event` path where iter2 = final_flush().
169-
expected_flushed_events=[
170-
PartDeltaEvent(index=0, delta=ThinkingPartDelta(content_delta='</')),
171-
],
172-
),
173158
]
174159

175160
# Category 3: Invalid Opening Tags (prefixes, invalid continuations, flushes)

0 commit comments

Comments
 (0)