mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 22:11:54 +08:00
27 lines
613 B
Python
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: ... |