Skip to content

Commit

Permalink
Update djangorestframework to 3.15.1 (#565)
Browse files Browse the repository at this point in the history
Co-authored-by: Marti Raudsepp <marti@juffo.org>
  • Loading branch information
sobolevn and intgr authored Mar 25, 2024
1 parent d6bbc0c commit 04a73e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 1 addition & 5 deletions rest_framework-stubs/exceptions.pyi
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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): ...
Expand Down

0 comments on commit 04a73e4

Please sign in to comment.