Skip to content

Commit 16a3d6b

Browse files
pyup-botsliverc
andauthored
Scheduled biweekly dependency update for week 18 (#939)
* Update black from 20.8b1 to 21.4b2 * Update faker from 8.1.0 to 8.1.2 Co-authored-by: Oliver Sauder <[email protected]>
1 parent fbb4b03 commit 16a3d6b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
black==20.8b1
1+
black==21.4b2
22
flake8==3.9.1
33
flake8-isort==4.0.0
44
isort==5.8.0

requirements/requirements-testing.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
django-debug-toolbar==3.2.1
22
factory-boy==3.2.0
3-
Faker==8.1.0
3+
Faker==8.1.2
44
pytest==6.2.3
55
pytest-cov==2.11.1
66
pytest-django==4.2.0

rest_framework_json_api/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def get_resource_type_from_serializer(serializer):
326326

327327

328328
def get_included_resources(request, serializer=None):
329-
""" Build a list of included resources. """
329+
"""Build a list of included resources."""
330330
include_resources_param = request.query_params.get("include") if request else None
331331
if include_resources_param:
332332
return include_resources_param.split(",")

rest_framework_json_api/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def get_queryset(self, *args, **kwargs):
8181

8282
class AutoPrefetchMixin(object):
8383
def get_queryset(self, *args, **kwargs):
84-
""" This mixin adds automatic prefetching for OneToOne and ManyToMany fields. """
84+
"""This mixin adds automatic prefetching for OneToOne and ManyToMany fields."""
8585
qs = super(AutoPrefetchMixin, self).get_queryset(*args, **kwargs)
8686

8787
included_resources = get_included_resources(

0 commit comments

Comments
 (0)