mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-08 13:04:47 +08:00
11 lines
326 B
Python
11 lines
326 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
|