mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-11 06:21:58 +08:00
initial commit
This commit is contained in:
11
django/contrib/sessions/serializers.pyi
Normal file
11
django/contrib/sessions/serializers.pyi
Normal file
@@ -0,0 +1,11 @@
|
||||
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]: ...
|
||||
Reference in New Issue
Block a user