Skip to content

Commit 54008bd

Browse files
Add type: ignore[call-arg] in /Users/panxia/Documents/GitHub/langchain-oracle/libs/oci/tests/unit_tests/chat_models/test_oci_data_science.py
1 parent 3ba2a84 commit 54008bd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

libs/oci/tests/unit_tests/chat_models/test_oci_data_science.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __init__(self, json_data: Dict, status_code: int = 200):
8080
def raise_for_status(self) -> None:
8181
"""Mocked raise for status."""
8282
if 400 <= self.status_code < 600:
83-
raise HTTPError()
83+
raise HTTPError() # type: ignore[call-arg]
8484

8585
def json(self) -> Dict:
8686
"""Returns mocked json data."""

libs/oci/tests/unit_tests/chat_models/test_oci_generative_ai.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
"""Test OCI Generative AI LLM service"""
55

6+
from typing import Union
67
from unittest.mock import MagicMock
78

89
import pytest
@@ -231,7 +232,7 @@ def get_weather(location: str) -> str:
231232
messages = [HumanMessage(content="What's the weather like?")]
232233

233234
# Test different tool choice options
234-
tool_choices: list[str | bool | dict[str, str | dict[str, str]]] = [
235+
tool_choices: list[Union[str, bool, dict[str, Union[str, dict[str, str]]]]] = [
235236
"get_weather", # Specific tool
236237
"auto", # Auto mode
237238
"none", # No tools

0 commit comments

Comments
 (0)