File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -476,12 +476,7 @@ async def send_handling_redirects(
476476
477477 if not allow_redirects :
478478 response .call_next = functools .partial (
479- # NOTE: not using 'self.send_handling_redirects' here, because
480- # 'call_next' must reference a function (instead
481- # of a method). This ensures that 'inspect.iscoroutinefunction()'
482- # checks behave properly.
483- Client .send_handling_redirects ,
484- self ,
479+ self .send_handling_redirects ,
485480 request = request ,
486481 auth = auth ,
487482 verify = verify ,
Original file line number Diff line number Diff line change @@ -930,7 +930,6 @@ async def anext(self) -> "Response":
930930 if not self .is_redirect :
931931 raise NotRedirectResponse ()
932932 assert self .call_next is not None
933- assert inspect .iscoroutinefunction (self .call_next )
934933 return await self .call_next ()
935934
936935 async def close (self ) -> None :
You can’t perform that action at this time.
0 commit comments