Skip to content

Commit 10a4fe1

Browse files
committed
Annotate betas list to satisfy pyright
`.get('betas') or []` infers as `Any | list[Unknown]`, which pyright rejects (reportUnknownVariableType). Restore the explicit `list[str]` annotation the pre-parametrization negative test had.
1 parent 90e1dc8 commit 10a4fe1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/models/test_anthropic.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2975,7 +2975,7 @@ async def test_files_api_beta_added_only_for_anthropic_uploaded_file(
29752975
await agent.run(content)
29762976

29772977
# `betas` may be absent entirely (NOT_GIVEN/OMIT) when no betas are required.
2978-
betas = get_mock_chat_completion_kwargs(mock_client)[0].get('betas') or []
2978+
betas: list[str] = get_mock_chat_completion_kwargs(mock_client)[0].get('betas') or []
29792979
assert ('files-api-2025-04-14' in betas) is expect_beta
29802980

29812981

0 commit comments

Comments
 (0)