massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2and3 / werkzeug / contrib / securecookie.pyi
1 from typing import Any\r
2 from hmac import new as hmac\r
3 from hashlib import sha1 as _default_hash\r
4 from werkzeug.contrib.sessions import ModificationTrackingDict\r
5 \r
6 class UnquoteError(Exception): ...\r
7 \r
8 class SecureCookie(ModificationTrackingDict):\r
9     hash_method = ...  # type: Any\r
10     serialization_method = ...  # type: Any\r
11     quote_base64 = ...  # type: Any\r
12     secret_key = ...  # type: Any\r
13     new = ...  # type: Any\r
14     def __init__(self, data=None, secret_key=None, new=True): ...\r
15     @property\r
16     def should_save(self): ...\r
17     @classmethod\r
18     def quote(cls, value): ...\r
19     @classmethod\r
20     def unquote(cls, value): ...\r
21     def serialize(self, expires=None): ...\r
22     @classmethod\r
23     def unserialize(cls, string, secret_key): ...\r
24     @classmethod\r
25     def load_cookie(cls, request, key='', secret_key=None): ...\r
26     def save_cookie(self, response, key='', expires=None, session_expires=None, max_age=None, path='', domain=None, secure=None, httponly=False, force=False): ...\r