Skip to content

Commit defa0b7

Browse files
committed
Restore type: ignore for mock HTTPError responses
1 parent 0864c9e commit defa0b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-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(response=self)
83+
raise HTTPError(response=self) # type: ignore[arg-type]
8484

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

libs/oci/tests/unit_tests/llms/test_oci_model_deployment_endpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init__(self, json_data: Dict, status_code: int = 200) -> None:
6161
def raise_for_status(self) -> None:
6262
"""Mocked raise for status."""
6363
if 400 <= self.status_code < 600:
64-
raise HTTPError(response=self)
64+
raise HTTPError(response=self) # type: ignore[arg-type]
6565

6666
def json(self) -> Dict:
6767
"""Returns mocked json data."""

0 commit comments

Comments
 (0)