mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 12:44:29 +08:00
first version finished
This commit is contained in:
23
django/utils/deprecation.pyi
Normal file
23
django/utils/deprecation.pyi
Normal file
@@ -0,0 +1,23 @@
|
||||
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: ...
|
||||
Reference in New Issue
Block a user