Files
django-stubs/django/contrib/sessions/backends/file.pyi
Maxim Kurnikov a9f215bf64 initial commit
2018-07-29 18:12:23 +03:00

18 lines
591 B
Python

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: ...