diff --git a/requirements.txt b/requirements.txt index 4de3c3095..2551476a1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ pre-commit==3.5.0; python_version < '3.9' pre-commit==3.7.0; python_version >= '3.9' pytest==8.1.1 pytest-mypy-plugins==3.1.1 -djangorestframework==3.15.0 +djangorestframework==3.15.1 types-pytz==2024.1.0.20240203 types-requests==2.31.0.20240311 types-urllib3==1.26.25.14 diff --git a/rest_framework-stubs/exceptions.pyi b/rest_framework-stubs/exceptions.pyi index a331e3715..53a6d397f 100644 --- a/rest_framework-stubs/exceptions.pyi +++ b/rest_framework-stubs/exceptions.pyi @@ -1,5 +1,5 @@ from collections.abc import Mapping, Sequence -from typing import Any, ClassVar +from typing import Any from django.http import HttpRequest, JsonResponse from django_stubs_ext import StrOrPromise @@ -43,10 +43,6 @@ class APIException(Exception): class ValidationError(APIException): # ValidationError wraps `detail` in a list if it's not already a list/dict. detail: list[_Detail] | dict[str, _Detail] - default_params: ClassVar[Mapping[str, Any]] - def __init__( - self, detail: _Detail | None = ..., code: str | None = ..., params: Mapping[str, Any] | None = ... - ) -> None: ... class ParseError(APIException): ... class AuthenticationFailed(APIException): ...