(request: base.Request)
| 244 | # but aiohttp doesn't recognize it as such and emits the warning. |
| 245 | # To avoid that we just wrap it in an `async def` function |
| 246 | async def _dispatch(request: base.Request) -> base.Response: |
| 247 | return await handler(request) |
| 248 | |
| 249 | _dispatch.__doc__ = handler.__doc__ |
| 250 | return _dispatch |