Skip to content

Commit 3499780

Browse files
committed
Fix mypy unreachable error code in test
1 parent 5eb591e commit 3499780

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/oci/tests/integration_tests/chat_models/test_openai_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ def test_openai_streaming(openai_config: dict):
147147

148148
chunks = []
149149
for chunk in chat.stream([HumanMessage(content="Say hello")]):
150-
assert isinstance(chunk, AIMessage), "Chunk should be AIMessage" # type: ignore[arg-type]
151-
chunks.append(chunk)
150+
assert isinstance(chunk, AIMessage), "Chunk should be AIMessage" # type: ignore[unreachable]
151+
chunks.append(chunk) # type: ignore[unreachable]
152152

153153
# Verify we got at least one chunk (streaming worked)
154154
assert len(chunks) > 0, "Should receive at least one chunk"

0 commit comments

Comments
 (0)