Skip to content

Commit 04a73e4

Browse files
sobolevnintgr
andauthored
Update djangorestframework to 3.15.1 (#565)
Co-authored-by: Marti Raudsepp <[email protected]>
1 parent d6bbc0c commit 04a73e4

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pre-commit==3.5.0; python_version < '3.9'
33
pre-commit==3.7.0; python_version >= '3.9'
44
pytest==8.1.1
55
pytest-mypy-plugins==3.1.1
6-
djangorestframework==3.15.0
6+
djangorestframework==3.15.1
77
types-pytz==2024.1.0.20240203
88
types-requests==2.31.0.20240311
99
types-urllib3==1.26.25.14

rest_framework-stubs/exceptions.pyi

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from collections.abc import Mapping, Sequence
2-
from typing import Any, ClassVar
2+
from typing import Any
33

44
from django.http import HttpRequest, JsonResponse
55
from django_stubs_ext import StrOrPromise
@@ -43,10 +43,6 @@ class APIException(Exception):
4343
class ValidationError(APIException):
4444
# ValidationError wraps `detail` in a list if it's not already a list/dict.
4545
detail: list[_Detail] | dict[str, _Detail]
46-
default_params: ClassVar[Mapping[str, Any]]
47-
def __init__(
48-
self, detail: _Detail | None = ..., code: str | None = ..., params: Mapping[str, Any] | None = ...
49-
) -> None: ...
5046

5147
class ParseError(APIException): ...
5248
class AuthenticationFailed(APIException): ...

0 commit comments

Comments
 (0)