Files
django-stubs/django-stubs/contrib/messages/storage/cookie.pyi
Maxim Kurnikov 5c6be7ad12 Add test to import all modules to check validity of stubs (#56)
* add import_all.test builder

* fix errors

* fix typechecking errors

* fix migrations typechecking
2019-03-25 01:57:34 +03:00

21 lines
487 B
Python

import json
from typing import Any
from django.contrib.messages.storage.base import BaseStorage
class MessageEncoder(json.JSONEncoder):
allow_nan: bool
check_circular: bool
ensure_ascii: bool
skipkeys: bool
sort_keys: bool
message_key: str = ...
class MessageDecoder(json.JSONDecoder):
def process_messages(self, obj: Any) -> Any: ...
class CookieStorage(BaseStorage):
cookie_name: str = ...
max_cookie_size: int = ...
not_finished: str = ...