massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2and3 / werkzeug / contrib / securecookie.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/third_party/2and3/werkzeug/contrib/securecookie.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/third_party/2and3/werkzeug/contrib/securecookie.pyi
new file mode 100644 (file)
index 0000000..2a8aae8
--- /dev/null
@@ -0,0 +1,26 @@
+from typing import Any\r
+from hmac import new as hmac\r
+from hashlib import sha1 as _default_hash\r
+from werkzeug.contrib.sessions import ModificationTrackingDict\r
+\r
+class UnquoteError(Exception): ...\r
+\r
+class SecureCookie(ModificationTrackingDict):\r
+    hash_method = ...  # type: Any\r
+    serialization_method = ...  # type: Any\r
+    quote_base64 = ...  # type: Any\r
+    secret_key = ...  # type: Any\r
+    new = ...  # type: Any\r
+    def __init__(self, data=None, secret_key=None, new=True): ...\r
+    @property\r
+    def should_save(self): ...\r
+    @classmethod\r
+    def quote(cls, value): ...\r
+    @classmethod\r
+    def unquote(cls, value): ...\r
+    def serialize(self, expires=None): ...\r
+    @classmethod\r
+    def unserialize(cls, string, secret_key): ...\r
+    @classmethod\r
+    def load_cookie(cls, request, key='', secret_key=None): ...\r
+    def save_cookie(self, response, key='', expires=None, session_expires=None, max_age=None, path='', domain=None, secure=None, httponly=False, force=False): ...\r