strawberry-graphql 0.209.3.dev1696259772__py3-none-any.whl → 0.209.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- strawberry/django/views.py +3 -2
- strawberry/types/fields/resolver.py +5 -1
- {strawberry_graphql-0.209.3.dev1696259772.dist-info → strawberry_graphql-0.209.5.dist-info}/METADATA +1 -1
- {strawberry_graphql-0.209.3.dev1696259772.dist-info → strawberry_graphql-0.209.5.dist-info}/RECORD +7 -7
- {strawberry_graphql-0.209.3.dev1696259772.dist-info → strawberry_graphql-0.209.5.dist-info}/LICENSE +0 -0
- {strawberry_graphql-0.209.3.dev1696259772.dist-info → strawberry_graphql-0.209.5.dist-info}/WHEEL +0 -0
- {strawberry_graphql-0.209.3.dev1696259772.dist-info → strawberry_graphql-0.209.5.dist-info}/entry_points.txt +0 -0
strawberry/django/views.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
from __future__ import annotations
|
2
2
|
|
3
|
-
import asyncio
|
4
3
|
import json
|
5
4
|
from typing import (
|
6
5
|
TYPE_CHECKING,
|
@@ -12,6 +11,7 @@ from typing import (
|
|
12
11
|
cast,
|
13
12
|
)
|
14
13
|
|
14
|
+
from asgiref.sync import markcoroutinefunction
|
15
15
|
from django.http import HttpRequest, HttpResponseNotAllowed, JsonResponse
|
16
16
|
from django.http.response import HttpResponse
|
17
17
|
from django.template import RequestContext, Template
|
@@ -231,7 +231,8 @@ class AsyncGraphQLView(
|
|
231
231
|
# https://docs.djangoproject.com/en/3.1/topics/async/#async-views
|
232
232
|
|
233
233
|
view = super().as_view(**initkwargs)
|
234
|
-
view
|
234
|
+
markcoroutinefunction(view)
|
235
|
+
|
235
236
|
return view
|
236
237
|
|
237
238
|
async def get_root_value(self, request: HttpRequest) -> Any:
|
@@ -240,7 +240,11 @@ class StrawberryResolver(Generic[T]):
|
|
240
240
|
if (
|
241
241
|
conflicting_arguments := (
|
242
242
|
populated_reserved_parameters
|
243
|
-
|
243
|
+
# TODO: Maybe use SELF_PARAMSPEC in the future? Right now
|
244
|
+
# it would prevent some common pattern for integrations
|
245
|
+
# (e.g. django) of typing the `root` parameters as the
|
246
|
+
# type of the real object being used
|
247
|
+
& {ROOT_PARAMSPEC, PARENT_PARAMSPEC}
|
244
248
|
)
|
245
249
|
) and len(conflicting_arguments) > 1:
|
246
250
|
raise ConflictingArgumentsError(
|
{strawberry_graphql-0.209.3.dev1696259772.dist-info → strawberry_graphql-0.209.5.dist-info}/RECORD
RENAMED
@@ -58,7 +58,7 @@ strawberry/django/apps.py,sha256=ZWw3Mzv1Cgy0T9xT8Jr2_dkCTZjT5WQABb34iqnu5pc,135
|
|
58
58
|
strawberry/django/context.py,sha256=KHZ-u9tc2ip3FAEj4mXoFPeKVyq3KyVjHqCZM9uFc7c,607
|
59
59
|
strawberry/django/test/__init__.py,sha256=4xxdUZtIISSOwjrcnmox7AvT4WWjowCm5bUuPdQneMg,71
|
60
60
|
strawberry/django/test/client.py,sha256=lPEbe_4lNL1pSgtywq4O-b6n7ALCW3U9_uvoWz3EaSM,592
|
61
|
-
strawberry/django/views.py,sha256=
|
61
|
+
strawberry/django/views.py,sha256=kQK0Pyk1G1wQjzpa0s1aWmw4QfRNcEZKmgJ5WWSySk8,7820
|
62
62
|
strawberry/enum.py,sha256=bSbhrAuquqc1tFuB6tYGJ7wIbwlF3VsksephKundOM8,4283
|
63
63
|
strawberry/exceptions/__init__.py,sha256=DMnNx3f2km02dchxkKgf5e9akS7LW3vRhUPOLApHXk4,6173
|
64
64
|
strawberry/exceptions/conflicting_arguments.py,sha256=IDm6h5pB7vkq8YlKqLqqsK-IAReFNevx4D7ghE9INuE,1566
|
@@ -212,7 +212,7 @@ strawberry/type.py,sha256=gbq0f_xOz9SezQje1MQU_JCkcJJzR8WfK5CtEClLW6A,6546
|
|
212
212
|
strawberry/types/__init__.py,sha256=APb1Cjy6bxqFxIfDfempP6eb9NE3LYDwQ3gX7r07lXI,139
|
213
213
|
strawberry/types/execution.py,sha256=qCqDMJgdAFwdc3uPzVTAKsZlu6fgxPLrFwkoX_PFBq8,2775
|
214
214
|
strawberry/types/fields/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
215
|
-
strawberry/types/fields/resolver.py,sha256=
|
215
|
+
strawberry/types/fields/resolver.py,sha256=JeFURfzzwRYESwHo8ZXCY0DkUqqX5ex6W-tW3CIkgUo,13731
|
216
216
|
strawberry/types/graphql.py,sha256=3SWZEsa0Zy1eVW6vy75BnB7t9_lJVi6TBV3_1j3RNBs,687
|
217
217
|
strawberry/types/info.py,sha256=AwYUVQgCiTGFU9x97ntF3v6W6qnknOBvuYnERdfIe4w,2776
|
218
218
|
strawberry/types/nodes.py,sha256=2ZVa1HOFgHZ96QTfz3QEr1fufi6Sz9hAzcZxsN7KtGE,5026
|
@@ -234,8 +234,8 @@ strawberry/utils/logging.py,sha256=YGiPxfD5vC1UilPoKDP5vTHzQoF6F0lcOUGU3BWLBBo,1
|
|
234
234
|
strawberry/utils/operation.py,sha256=Um-tBCPl3_bVFN2Ph7o1mnrxfxBes4HFCj6T0x4kZxE,1135
|
235
235
|
strawberry/utils/str_converters.py,sha256=avIgPVLg98vZH9mA2lhzVdyyjqzLsK2NdBw9mJQ02Xk,813
|
236
236
|
strawberry/utils/typing.py,sha256=OvJkJHNgS2uP5RMkj033_64B34xGlbCh0udXgsM9Ihg,13481
|
237
|
-
strawberry_graphql-0.209.
|
238
|
-
strawberry_graphql-0.209.
|
239
|
-
strawberry_graphql-0.209.
|
240
|
-
strawberry_graphql-0.209.
|
241
|
-
strawberry_graphql-0.209.
|
237
|
+
strawberry_graphql-0.209.5.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
|
238
|
+
strawberry_graphql-0.209.5.dist-info/METADATA,sha256=YXAasjEfS4CTZ68e-49ix-V-QVNY3zraJ_jUTkimSiU,7517
|
239
|
+
strawberry_graphql-0.209.5.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
240
|
+
strawberry_graphql-0.209.5.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
|
241
|
+
strawberry_graphql-0.209.5.dist-info/RECORD,,
|
{strawberry_graphql-0.209.3.dev1696259772.dist-info → strawberry_graphql-0.209.5.dist-info}/LICENSE
RENAMED
File without changes
|
{strawberry_graphql-0.209.3.dev1696259772.dist-info → strawberry_graphql-0.209.5.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|