Skip to content

v1.0.1

Latest

Choose a tag to compare

@shuckc shuckc released this 13 Sep 09:19
· 1 commit to master since this release

Added typehint to @aiohttp_csrf.csrf_exempt.
Ideally this would be using a ParamSpec to be generic on arguments to the handler function it is decorating, however this is not compatible with 3.9.
For now expects to decorate basic handlers only:

async def handler(req: web.Request) -> web.StreamResponse:
     ...