Skip to content

Commit

Permalink
chore: close typeddjango#1269
Browse files Browse the repository at this point in the history
  • Loading branch information
GabDug committed Jun 26, 2023
1 parent 3cba615 commit 1f3ae9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions django-stubs/utils/deprecation.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ from typing import Any, Protocol, type_check_only

from django.http.request import HttpRequest
from django.http.response import HttpResponseBase
from django.utils.decorators import _AsyncGetResponseCallable
from typing_extensions import TypeAlias

class RemovedInDjango50Warning(DeprecationWarning): ...
Expand Down Expand Up @@ -38,7 +39,7 @@ class MiddlewareMixin:
sync_capable: bool
async_capable: bool

get_response: GetResponseCallable
def __init__(self, get_response: GetResponseCallable) -> None: ...
get_response: _GetResponseCallable | _AsyncGetResponseCallable
def __init__(self, get_response: _GetResponseCallable | _AsyncGetResponseCallable) -> None: ...
def __call__(self, request: HttpRequest) -> HttpResponseBase: ...
async def __acall__(self, request: HttpRequest) -> HttpResponseBase: ...

0 comments on commit 1f3ae9d

Please sign in to comment.