mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-06 20:24:31 +08:00
11 lines
269 B
Python
11 lines
269 B
Python
from datetime import datetime
|
|
from django.db.models.base import Model
|
|
from typing import (
|
|
Dict,
|
|
Union,
|
|
)
|
|
|
|
|
|
class PickleSerializer:
|
|
def dumps(self, obj: Dict[str, Union[str, datetime]]) -> bytes: ...
|
|
def loads(self, data: bytes) -> Dict[str, Model]: ... |