Add type stub files

This commit is contained in:
Rick Voormolen
2021-01-14 14:47:56 +01:00
parent 3298ff4e7c
commit 77aef3c8ac
7 changed files with 102 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
from .abc import AbstractIdentityPolicy, Identity
from typing import Any, Union
import aiohttp.web
class sentinel: ...
class CookiesIdentityPolicy(AbstractIdentityPolicy):
def __init__(self) -> None: ...
async def identify(self, request: aiohttp.web.Request) -> Identity: ...
async def remember(self, request: aiohttp.web.Request, response: aiohttp.web.StreamResponse, identity: Identity, max_age: Union[sentinel, int]=..., **kwargs: Any) -> None: ...
async def forget(self, request: aiohttp.web.Request, response: aiohttp.web.StreamResponse) -> None: ...