mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-16 00:37:11 +08:00
more fixes for django stubs, first attempt for a plugin
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from typing import Callable, Optional, Type
|
||||
|
||||
from django.contrib.sessions.backends.base import SessionBase
|
||||
from django.core.handlers.wsgi import WSGIRequest
|
||||
from django.http.request import HttpRequest
|
||||
from django.http.response import HttpResponseBase
|
||||
@@ -8,7 +9,7 @@ from django.utils.deprecation import MiddlewareMixin
|
||||
|
||||
class SessionMiddleware(MiddlewareMixin):
|
||||
get_response: Callable[[WSGIRequest], HttpResponseBase] = ...
|
||||
SessionStore: Type[SessionStore] = ...
|
||||
SessionStore: Type[SessionBase] = ...
|
||||
|
||||
def __init__(self, get_response: Optional[Callable] = ...) -> None: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user