Files
django-stubs/django-stubs/contrib/sessions/serializers.pyi
2018-07-29 20:19:43 +03:00

11 lines
269 B
Python

from datetime import datetime
from django.db.models.base import Model
from typing import (
Dict,
Union,
)
class PickleSerializer:
def dumps(self, obj: Dict[str, Union[str, datetime]]) -> bytes: ...
def loads(self, data: bytes) -> Dict[str, Model]: ...