mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-06 12:14:28 +08:00
23 lines
609 B
Python
23 lines
609 B
Python
from django.core.handlers.wsgi import WSGIRequest
|
|
from django.http.response import HttpResponseBase
|
|
from typing import (
|
|
Callable,
|
|
Optional,
|
|
Type,
|
|
)
|
|
|
|
|
|
class MiddlewareMixin:
|
|
def __call__(self, request: WSGIRequest) -> HttpResponseBase: ...
|
|
def __init__(self, get_response: Optional[Callable] = ...) -> None: ...
|
|
|
|
|
|
class warn_about_renamed_method:
|
|
def __call__(self, f: Callable) -> Callable: ...
|
|
def __init__(
|
|
self,
|
|
class_name: str,
|
|
old_method_name: str,
|
|
new_method_name: str,
|
|
deprecation_warning: Type[DeprecationWarning]
|
|
) -> None: ... |