Skip to content

Commit c8c6f05

Browse files
committed
Fix type of session_dict in BaseSession
1 parent 30e1275 commit c8c6f05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

django-stubs/contrib/sessions/base_session.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ from django.contrib.sessions.backends.base import SessionBase
55
from django.db import models
66

77
class BaseSessionManager(models.Manager):
8-
def encode(self, session_dict: Dict[str, int]) -> str: ...
9-
def save(self, session_key: str, session_dict: Dict[str, int], expire_date: datetime) -> AbstractBaseSession: ...
8+
def encode(self, session_dict: Dict[str, Any]) -> str: ...
9+
def save(self, session_key: str, session_dict: Dict[str, Any], expire_date: datetime) -> AbstractBaseSession: ...
1010

1111
class AbstractBaseSession(models.Model):
1212
expire_date: datetime
@@ -15,4 +15,4 @@ class AbstractBaseSession(models.Model):
1515
objects: Any = ...
1616
@classmethod
1717
def get_session_store_class(cls) -> Optional[Type[SessionBase]]: ...
18-
def get_decoded(self) -> Dict[str, int]: ...
18+
def get_decoded(self) -> Dict[str, Any]: ...

0 commit comments

Comments
 (0)