mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-08 21:14:49 +08:00
move generated stubs to separate directory, too messty
This commit is contained in:
38
django-stubs-generated/utils/deprecation.pyi
Normal file
38
django-stubs-generated/utils/deprecation.pyi
Normal file
@@ -0,0 +1,38 @@
|
||||
from typing import Any, Callable, Optional, Type
|
||||
|
||||
from django.http.request import HttpRequest
|
||||
from django.http.response import HttpResponseBase
|
||||
|
||||
|
||||
class RemovedInDjango30Warning(PendingDeprecationWarning): ...
|
||||
class RemovedInNextVersionWarning(DeprecationWarning): ...
|
||||
|
||||
class warn_about_renamed_method:
|
||||
class_name: str = ...
|
||||
old_method_name: str = ...
|
||||
new_method_name: str = ...
|
||||
deprecation_warning: Type[DeprecationWarning] = ...
|
||||
def __init__(
|
||||
self,
|
||||
class_name: str,
|
||||
old_method_name: str,
|
||||
new_method_name: str,
|
||||
deprecation_warning: Type[DeprecationWarning],
|
||||
) -> None: ...
|
||||
def __call__(self, f: Callable) -> Callable: ...
|
||||
|
||||
class RenameMethodsBase(type):
|
||||
renamed_methods: Any = ...
|
||||
def __new__(cls, name: Any, bases: Any, attrs: Any): ...
|
||||
|
||||
class DeprecationInstanceCheck(type):
|
||||
alternative: str
|
||||
deprecation_warning: Type[
|
||||
django.utils.deprecation.RemovedInNextVersionWarning
|
||||
]
|
||||
def __instancecheck__(self, instance: Any): ...
|
||||
|
||||
class MiddlewareMixin:
|
||||
get_response: Any = ...
|
||||
def __init__(self, get_response: Optional[Callable] = ...) -> None: ...
|
||||
def __call__(self, request: HttpRequest) -> HttpResponseBase: ...
|
||||
Reference in New Issue
Block a user