Skip to content

Commit 5f37158

Browse files
Fix type annotations for regression test
Add missing type hints to test_auth_flow_no_unnecessary_retry_after_oauth to satisfy pyright type checking requirements.
1 parent 2c6c909 commit 5f37158

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/client/test_auth.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,9 @@ async def test_auth_flow_with_no_tokens(self, oauth_provider: OAuthClientProvide
700700
assert oauth_provider.context.token_expiry_time is not None
701701

702702
@pytest.mark.anyio
703-
async def test_auth_flow_no_unnecessary_retry_after_oauth(self, oauth_provider, mock_storage, valid_tokens):
703+
async def test_auth_flow_no_unnecessary_retry_after_oauth(
704+
self, oauth_provider: OAuthClientProvider, mock_storage: MockTokenStorage, valid_tokens: OAuthToken
705+
):
704706
"""Test that requests are not retried unnecessarily - the core bug that caused 2x performance degradation."""
705707
# Pre-store valid tokens so no OAuth flow is needed
706708
await mock_storage.set_tokens(valid_tokens)

0 commit comments

Comments
 (0)