mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-19 18:31:15 +08:00
initial commit
This commit is contained in:
18
django/contrib/sessions/backends/file.pyi
Normal file
18
django/contrib/sessions/backends/file.pyi
Normal file
@@ -0,0 +1,18 @@
|
||||
from typing import (
|
||||
Dict,
|
||||
Optional,
|
||||
)
|
||||
|
||||
|
||||
class SessionStore:
|
||||
def __init__(self, session_key: Optional[str] = ...) -> None: ...
|
||||
@classmethod
|
||||
def _get_storage_path(cls) -> str: ...
|
||||
def _key_to_file(self, session_key: Optional[str] = ...) -> str: ...
|
||||
@classmethod
|
||||
def clear_expired(cls) -> None: ...
|
||||
def create(self) -> None: ...
|
||||
def delete(self, session_key: Optional[str] = ...) -> None: ...
|
||||
def exists(self, session_key: Optional[str]) -> bool: ...
|
||||
def load(self) -> Dict[str, str]: ...
|
||||
def save(self, must_create: bool = ...) -> None: ...
|
||||
Reference in New Issue
Block a user