mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 22:11:54 +08:00
16 lines
535 B
Python
16 lines
535 B
Python
from collections import OrderedDict
|
|
from typing import Any, Dict, Iterator, List, Optional
|
|
|
|
from django.core.serializers.base import DeserializedObject
|
|
from django.db.models.base import Model
|
|
|
|
from django.core.serializers import base
|
|
|
|
class Serializer(base.Serializer):
|
|
objects: List[Any] = ...
|
|
def get_dump_object(self, obj: Model) -> OrderedDict: ...
|
|
|
|
def Deserializer(
|
|
object_list: List[Dict[str, Any]], *, using: Optional[str] = ..., ignorenonexistent: bool = ..., **options: Any
|
|
) -> Iterator[DeserializedObject]: ...
|