We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5eb5818 commit 998041aCopy full SHA for 998041a
tests/test_app/middleware.py
@@ -18,12 +18,5 @@ def __init__(self, get_response):
18
if iscoroutinefunction(self.get_response):
19
markcoroutinefunction(self)
20
21
- def __call__(self, request):
22
- if iscoroutinefunction(self.get_response):
23
-
24
- async def async_call():
25
- return await self.get_response(request)
26
27
- return async_call()
28
29
- return self.get_response(request)
+ async def __call__(self, request):
+ return await self.get_response(request)
0 commit comments