Skip to content

Commit cbd3cda

Browse files
authored
Fix APIView.options() return type to Response (#788)
1 parent dee8b47 commit cbd3cda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework-stubs/views.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ class APIView(View):
8989
def handle_exception(self, exc: Exception) -> Response: ...
9090
def raise_uncaught_exception(self, exc: Exception) -> NoReturn: ...
9191
def dispatch(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponseBase: ...
92-
def options(self, request: Request, *args: Any, **kwargs: Any) -> HttpResponseBase: ... # type: ignore[override]
92+
def options(self, request: Request, *args: Any, **kwargs: Any) -> Response: ... # type: ignore[override]

0 commit comments

Comments
 (0)