mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-14 15:57:08 +08:00
12 lines
327 B
Python
12 lines
327 B
Python
from typing import Any, Dict, Optional
|
|
|
|
from django.core.signing import JSONSerializer as BaseJSONSerializer
|
|
from django.db.models.base import Model
|
|
|
|
|
|
class PickleSerializer:
|
|
def dumps(self, obj: Dict[str, Model]) -> bytes: ...
|
|
def loads(self, data: bytes) -> Dict[str, Model]: ...
|
|
|
|
JSONSerializer = BaseJSONSerializer
|