Files
django-stubs/django/core/serializers/json.pyi
Maxim Kurnikov a9f215bf64 initial commit
2018-07-29 18:12:23 +03:00

27 lines
613 B
Python

from datetime import (
date,
timedelta,
)
from decimal import Decimal
from django.db.models.base import Model
from typing import (
Any,
Optional,
Union,
)
from uuid import UUID
def Deserializer(stream_or_string: Any, **options) -> None: ...
class DjangoJSONEncoder:
def default(self, o: Union[Decimal, UUID, date, timedelta]) -> str: ...
class Serializer:
def _init_options(self) -> None: ...
def end_object(self, obj: Model) -> None: ...
def end_serialization(self) -> None: ...
def getvalue(self) -> Optional[str]: ...
def start_serialization(self) -> None: ...