Skip to content

Commit 9345f10

Browse files
committed
fix(tests): add explicit type annotation
1 parent 717e318 commit 9345f10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/lib/test_assistants.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def assert_signatures_in_sync(
4040

4141
@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
4242
def test_create_and_run_poll_method_definition_in_sync(sync: bool, client: OpenAI, async_client: AsyncOpenAI) -> None:
43-
checking_client = client if sync else async_client
43+
checking_client: OpenAI | AsyncOpenAI = client if sync else async_client
4444

4545
assert_signatures_in_sync(
4646
checking_client.beta.threads.create_and_run,
@@ -50,7 +50,7 @@ def test_create_and_run_poll_method_definition_in_sync(sync: bool, client: OpenA
5050

5151
@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
5252
def test_create_and_run_stream_method_definition_in_sync(sync: bool, client: OpenAI, async_client: AsyncOpenAI) -> None:
53-
checking_client = client if sync else async_client
53+
checking_client: OpenAI | AsyncOpenAI = client if sync else async_client
5454

5555
assert_signatures_in_sync(
5656
checking_client.beta.threads.create_and_run,

0 commit comments

Comments
 (0)