massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / Werkzeug / werkzeug / contrib / securecookie.pyi
1 from hashlib import sha1 as _default_hash
2 from hmac import new as hmac
3 from typing import Any
4
5 from werkzeug.contrib.sessions import ModificationTrackingDict
6
7 class UnquoteError(Exception): ...
8
9 class SecureCookie(ModificationTrackingDict[Any, Any]):
10     hash_method: Any
11     serialization_method: Any
12     quote_base64: Any
13     secret_key: Any
14     new: Any
15     def __init__(self, data: Any | None = ..., secret_key: Any | None = ..., new: bool = ...): ...
16     @property
17     def should_save(self): ...
18     @classmethod
19     def quote(cls, value): ...
20     @classmethod
21     def unquote(cls, value): ...
22     def serialize(self, expires: Any | None = ...): ...
23     @classmethod
24     def unserialize(cls, string, secret_key): ...
25     @classmethod
26     def load_cookie(cls, request, key: str = ..., secret_key: Any | None = ...): ...
27     def save_cookie(
28         self,
29         response,
30         key: str = ...,
31         expires: Any | None = ...,
32         session_expires: Any | None = ...,
33         max_age: Any | None = ...,
34         path: str = ...,
35         domain: Any | None = ...,
36         secure: Any | None = ...,
37         httponly: bool = ...,
38         force: bool = ...,
39     ): ...