mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 14:01:56 +08:00
move generated stubs to separate directory, too messty
This commit is contained in:
35
django-stubs-generated/core/serializers/json.pyi
Normal file
35
django-stubs-generated/core/serializers/json.pyi
Normal file
@@ -0,0 +1,35 @@
|
||||
import json
|
||||
from datetime import datetime
|
||||
from decimal import Decimal
|
||||
from typing import Any, Optional, Union
|
||||
from uuid import UUID
|
||||
|
||||
from django.core.serializers.python import Serializer as PythonSerializer
|
||||
from django.db.models.base import Model
|
||||
|
||||
|
||||
class Serializer(PythonSerializer):
|
||||
json_kwargs: Dict[
|
||||
str, Optional[Type[django.core.serializers.json.DjangoJSONEncoder]]
|
||||
]
|
||||
options: Dict[str, None]
|
||||
selected_fields: None
|
||||
stream: _io.StringIO
|
||||
use_natural_foreign_keys: bool
|
||||
use_natural_primary_keys: bool
|
||||
internal_use_only: bool = ...
|
||||
def start_serialization(self) -> None: ...
|
||||
def end_serialization(self) -> None: ...
|
||||
def end_object(self, obj: Model) -> None: ...
|
||||
def getvalue(self) -> Optional[Union[bytes, str]]: ...
|
||||
|
||||
def Deserializer(stream_or_string: Any, **options: Any) -> None: ...
|
||||
|
||||
class DjangoJSONEncoder(json.JSONEncoder):
|
||||
allow_nan: bool
|
||||
check_circular: bool
|
||||
ensure_ascii: bool
|
||||
indent: None
|
||||
skipkeys: bool
|
||||
sort_keys: bool
|
||||
def default(self, o: Union[datetime, Decimal, UUID]) -> str: ...
|
||||
Reference in New Issue
Block a user