Skip to content

Commit c693948

Browse files
committed
Remove unused type ignore comments for mypy
1 parent 6f3e9b8 commit c693948

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/oci/langchain_oci/chat_models/oci_generative_ai.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ def with_structured_output(
13581358
key_name=tool_name, first_tool_only=True
13591359
)
13601360
elif method == "json_mode":
1361-
llm = self.bind(response_format={"type": "JSON_OBJECT"}) # type: ignore[assignment]
1361+
llm = self.bind(response_format={"type": "JSON_OBJECT"})
13621362
output_parser = (
13631363
PydanticOutputParser(pydantic_object=schema)
13641364
if is_pydantic_schema
@@ -1382,7 +1382,7 @@ def with_structured_output(
13821382
json_schema=response_json_schema
13831383
)
13841384

1385-
llm = self.bind(response_format=response_format_obj) # type: ignore[assignment]
1385+
llm = self.bind(response_format=response_format_obj)
13861386
if is_pydantic_schema:
13871387
output_parser = PydanticOutputParser(pydantic_object=schema)
13881388
else:

0 commit comments

Comments
 (0)