Skip to content

Commit 0b1f0c0

Browse files
Maxim ClaeysMaxim Claeys
authored andcommitted
Fix typing
1 parent 26f8189 commit 0b1f0c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

httpx_auth/authentication.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def sync_auth_flow(
204204

205205
async def async_auth_flow(
206206
self, request: httpx.Request
207-
) -> AsyncGenerator[httpx.Request, httpx.Response, None]:
207+
) -> AsyncGenerator[httpx.Request, httpx.Response]:
208208
token = await OAuth2.token_cache.get_token_async(
209209
self.state,
210210
early_expiry=self.early_expiry,
@@ -507,7 +507,7 @@ def sync_auth_flow(
507507

508508
async def async_sync_auth_flow(
509509
self, request: httpx.Request
510-
) -> AsyncGenerator[httpx.Request, httpx.Response, None]:
510+
) -> AsyncGenerator[httpx.Request, httpx.Response]:
511511
token = await OAuth2.token_cache.get_token_async(
512512
self.state,
513513
early_expiry=self.early_expiry,
@@ -711,7 +711,7 @@ def sync_auth_flow(
711711

712712
async def async_auth_flow(
713713
self, request: httpx.Request
714-
) -> AsyncGenerator[httpx.Request, httpx.Response, None]:
714+
) -> AsyncGenerator[httpx.Request, httpx.Response]:
715715
token = await OAuth2.token_cache.get_token_async(
716716
self.state,
717717
early_expiry=self.early_expiry,
@@ -1354,7 +1354,7 @@ def sync_auth_flow(
13541354

13551355
async def async_auth_flow(
13561356
self, request: httpx.Request
1357-
) -> AsyncGenerator[httpx.Request, httpx.Response, None]:
1357+
) -> AsyncGenerator[httpx.Request, httpx.Response]:
13581358
for authentication_mode in self.authentication_modes:
13591359
await authentication_mode.async_auth_flow(request).__anext__()
13601360
yield request

0 commit comments

Comments
 (0)