Skip to content

Commit 76c74f6

Browse files
Fix anext use for python 3.9
1 parent 3235c15 commit 76c74f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

httpx_auth/_authentication.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ async def async_auth_flow(
3131
for authentication_mode in self.authentication_modes:
3232
# auth_flow may yield one or more requests, the last of which is the user request with added auth headers
3333
flow = authentication_mode.async_auth_flow(request)
34-
req = await anext(flow)
34+
35+
req = await flow.__anext__()
3536
while True:
3637
if req is request:
3738
break

0 commit comments

Comments
 (0)