mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-14 07:47:09 +08:00
initial commit
This commit is contained in:
27
django/core/serializers/json.pyi
Normal file
27
django/core/serializers/json.pyi
Normal file
@@ -0,0 +1,27 @@
|
||||
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: ...
|
||||
Reference in New Issue
Block a user