Skip to content

Commit

Permalink
fun
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Oct 10, 2024
1 parent ff3d41c commit 13c44f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/tests/unit_tests/test_run_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import time
import uuid
import warnings
from typing import Any, AsyncGenerator, Generator, Optional, Set, cast
from typing import Any, AsyncGenerator, Generator, List, Optional, Set, Tuple, cast
from unittest.mock import MagicMock, patch

import pytest
Expand Down Expand Up @@ -50,7 +50,7 @@ def _get_calls(
return calls


def _get_datas(mock_calls: list[Any]) -> list[tuple[str, dict]]:
def _get_datas(mock_calls: List[Any]) -> List[Tuple[str, dict]]:
datas = []
for call_ in mock_calls:
data = json.loads(call_.kwargs["data"])
Expand Down Expand Up @@ -1509,7 +1509,7 @@ def my_function(a: int) -> Generator[int, None, None]:

with tracing_context(enabled=True):
with pytest.raises(ValueError, match="foo"):
async for _ in my_function(1, langsmith_extra={"client": mock_client}):
for _ in my_function(1, langsmith_extra={"client": mock_client}):
pass

# Get ALL the call args for the mock_client
Expand Down

0 comments on commit 13c44f6

Please sign in to comment.