Skip to content

Commit c2be785

Browse files
committed
Remove unused type ignore comments in test_openai_models.py
1 parent 5244e47 commit c2be785

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[unreachable]
151-
chunks.append(chunk) # type: ignore[unreachable]
150+
assert isinstance(chunk, AIMessage), "Chunk should be AIMessage"
151+
chunks.append(chunk)
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)