Skip to content

Commit 3037d22

Browse files
committed
Retype Generator as Iterator
1 parent 2731f37 commit 3037d22

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llm-service/app/tests/provider_mocks/bedrock.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@
3535
# BUSINESS ADVANTAGE OR UNAVAILABILITY, OR LOSS OR CORRUPTION OF
3636
# DATA.
3737
#
38-
import itertools
3938
from contextlib import AbstractContextManager
40-
from typing import Generator
39+
from typing import Iterator
4140
from unittest.mock import patch
4241
from urllib.parse import urljoin
4342

@@ -49,7 +48,6 @@
4948
from app.config import settings
5049
from app.services.caii.types import ModelResponse
5150
from app.services.models.providers import BedrockModelProvider
52-
from app.services.models.providers._model_provider import get_all_env_var_names
5351
from .utils import patch_env_vars
5452

5553
TEXT_MODELS = [
@@ -152,7 +150,7 @@ def mock_make_api_call(self, operation_name: str, api_params: dict[str, str]):
152150

153151

154152
@pytest.fixture
155-
def mock_bedrock(monkeypatch) -> Generator[None, None, None]:
153+
def mock_bedrock(monkeypatch) -> Iterator[None]:
156154
with patch_env_vars(BedrockModelProvider):
157155
with (
158156
_patch_requests(),

0 commit comments

Comments
 (0)