Skip to content

Commit 33f9d19

Browse files
authored
Update DRF to 3.15.0 (#560)
1 parent 510e2e1 commit 33f9d19

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
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.6.2; python_version >= '3.9'
44
pytest==8.1.1
55
pytest-mypy-plugins==3.1.1
6-
djangorestframework==3.14.0
6+
djangorestframework==3.15.0
77
types-pytz==2024.1.0.20240203
88
types-requests==2.31.0.20240311
99
types-urllib3==1.26.25.14

scripts/stubtest/allowlist_todo.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,33 @@ rest_framework.validators.Validator
135135
rest_framework.views.APIView.metadata_class
136136
rest_framework.views.AsView
137137
rest_framework.views.GenericView
138+
139+
# Added in 3.15:
140+
rest_framework.RemovedInDRF317Warning
141+
rest_framework.authtoken.migrations.0004_alter_tokenproxy_options
142+
rest_framework.compat.distinct
143+
rest_framework.exceptions.ValidationError.__init__
144+
rest_framework.exceptions.ValidationError.default_params
145+
rest_framework.fields.DecimalField.__init__
146+
rest_framework.fields.Field.__class_getitem__
147+
rest_framework.fields.logger
148+
rest_framework.fields.set_value
149+
rest_framework.filters.SearchFilter.construct_search
150+
rest_framework.filters.search_smart_split
151+
rest_framework.generics.GenericAPIView.__class_getitem__
152+
rest_framework.request.Request.__class_getitem__
153+
rest_framework.response.Response.__class_getitem__
154+
rest_framework.routers.BaseRouter.is_already_registered
155+
rest_framework.routers.SimpleRouter.__init__
156+
rest_framework.schemas.openapi.AutoSchema.get_field_name
157+
rest_framework.serializers.DecimalField.__init__
158+
rest_framework.serializers.Field.__class_getitem__
159+
rest_framework.serializers.LIST_SERIALIZER_KWARGS_REMOVE
160+
rest_framework.serializers.ListSerializer.run_child_validation
161+
rest_framework.serializers.ModelSerializer.get_unique_together_constraints
162+
rest_framework.serializers.Serializer.set_value
163+
rest_framework.serializers.ValidationError.__init__
164+
rest_framework.serializers.ValidationError.default_params
165+
rest_framework.templatetags.rest_framework.optional_logout
166+
rest_framework.utils.encoders.CustomScalar
167+
rest_framework.utils.field_mapping.get_unique_validators

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def find_stub_files(name: str) -> List[str]:
3636

3737
setup(
3838
name="djangorestframework-stubs",
39-
version="3.14.5",
39+
version="3.15.0",
4040
description="PEP-484 stubs for django-rest-framework",
4141
long_description=readme,
4242
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)