strawberry-graphql 0.273.0__py3-none-any.whl → 0.273.2__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.
@@ -43,7 +43,7 @@ if TYPE_CHECKING:
43
43
  from strawberry.schema import BaseSchema
44
44
 
45
45
 
46
- class AioHTTPRequestAdapter(AsyncHTTPRequestAdapter):
46
+ class AiohttpHTTPRequestAdapter(AsyncHTTPRequestAdapter):
47
47
  def __init__(self, request: web.Request) -> None:
48
48
  self.request = request
49
49
 
@@ -68,7 +68,7 @@ class AioHTTPRequestAdapter(AsyncHTTPRequestAdapter):
68
68
  data: dict[str, Any] = {}
69
69
  files: dict[str, Any] = {}
70
70
 
71
- async for field in reader:
71
+ while field := await reader.next():
72
72
  assert isinstance(field, BodyPartReader)
73
73
  assert field.name
74
74
 
@@ -84,7 +84,7 @@ class AioHTTPRequestAdapter(AsyncHTTPRequestAdapter):
84
84
  return self.headers.get("content-type")
85
85
 
86
86
 
87
- class AioHTTPWebSocketAdapter(AsyncWebSocketAdapter):
87
+ class AiohttpWebSocketAdapter(AsyncWebSocketAdapter):
88
88
  def __init__(
89
89
  self, view: AsyncBaseHTTPView, request: web.Request, ws: web.WebSocketResponse
90
90
  ) -> None:
@@ -132,8 +132,8 @@ class GraphQLView(
132
132
  _is_coroutine = asyncio.coroutines._is_coroutine # type: ignore[attr-defined]
133
133
 
134
134
  allow_queries_via_get = True
135
- request_adapter_class = AioHTTPRequestAdapter
136
- websocket_adapter_class = AioHTTPWebSocketAdapter
135
+ request_adapter_class = AiohttpHTTPRequestAdapter
136
+ websocket_adapter_class = AiohttpWebSocketAdapter
137
137
 
138
138
  def __init__(
139
139
  self,
@@ -124,7 +124,10 @@ class GraphQLView(
124
124
  return Response(
125
125
  body=self.encode_json(response_data),
126
126
  status_code=status_code,
127
- headers=sub_response.headers, # type: ignore[arg-type]
127
+ headers={
128
+ "Content-Type": "application/json",
129
+ **sub_response.headers,
130
+ },
128
131
  )
129
132
 
130
133
  def execute_request(self, request: Request) -> Response:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: strawberry-graphql
3
- Version: 0.273.0
3
+ Version: 0.273.2
4
4
  Summary: A library for creating GraphQL APIs
5
5
  License: MIT
6
6
  Keywords: graphql,api,rest,starlette,async
@@ -3,13 +3,13 @@ strawberry/__main__.py,sha256=3U77Eu21mJ-LY27RG-JEnpbh6Z63wGOom4i-EoLtUcY,59
3
3
  strawberry/aiohttp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  strawberry/aiohttp/test/__init__.py,sha256=4xxdUZtIISSOwjrcnmox7AvT4WWjowCm5bUuPdQneMg,71
5
5
  strawberry/aiohttp/test/client.py,sha256=8FKZTnvawxYpgEICOri-34O3wHRHLhRpjH_Ktp2EupQ,1801
6
- strawberry/aiohttp/views.py,sha256=AQVBbZTBa127TbQRwoBelTHrVdZnJeGdMYcTfNmoaSc,7887
6
+ strawberry/aiohttp/views.py,sha256=1W93XsvT65zavehNXCQlD5S-Mec14jCPfolj9xVZACc,7904
7
7
  strawberry/annotation.py,sha256=iqSXtJ4pTTLDZRPyil0f-yzpcCm8UYRiwvFWkD5LgpQ,13498
8
8
  strawberry/asgi/__init__.py,sha256=psdKl_52LGkxKKbzZlmwNGZ9jz2FLyLSC7fUhys4FqY,8169
9
9
  strawberry/asgi/test/__init__.py,sha256=4xxdUZtIISSOwjrcnmox7AvT4WWjowCm5bUuPdQneMg,71
10
10
  strawberry/asgi/test/client.py,sha256=kp2O5znHWuAB5VVYO8p4XPSTEDDXBSjNz5WHqW0r6GM,1473
11
11
  strawberry/chalice/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- strawberry/chalice/views.py,sha256=mq2ILQrT9n9x13S8DCag1yInIXSShJU6GVMOCCeDlZ4,4758
12
+ strawberry/chalice/views.py,sha256=NBr_Chym4oMrhsr_kD4dx6gNnyBSBo8u7lKykRyfi4k,4819
13
13
  strawberry/channels/__init__.py,sha256=AVmEwhzGHcTycMCnZYcZFFqZV8tKw9FJN4YXws-vWFA,433
14
14
  strawberry/channels/handlers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  strawberry/channels/handlers/base.py,sha256=3mSvT2HMlOoWr0Y_8y1wwSmvCmB8osy2pEK1Kc5zJ5M,7841
@@ -232,8 +232,8 @@ strawberry/utils/logging.py,sha256=U1cseHGquN09YFhFmRkiphfASKCyK0HUZREImPgVb0c,7
232
232
  strawberry/utils/operation.py,sha256=CCIREeh3-CzjvjyjhmYPRCVDZUX36jAxF6LbK8r5wEw,1222
233
233
  strawberry/utils/str_converters.py,sha256=-eH1Cl16IO_wrBlsGM-km4IY0IKsjhjnSNGRGOwQjVM,897
234
234
  strawberry/utils/typing.py,sha256=SDvX-Du-9HAV3-XXjqi7Q5f5qPDDFd_gASIITiwBQT4,14073
235
- strawberry_graphql-0.273.0.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
236
- strawberry_graphql-0.273.0.dist-info/METADATA,sha256=D3nGD6vLB5rmHzCwLkSVv3YEBtjIWLI1btDYtfoJ8hY,7444
237
- strawberry_graphql-0.273.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
238
- strawberry_graphql-0.273.0.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
239
- strawberry_graphql-0.273.0.dist-info/RECORD,,
235
+ strawberry_graphql-0.273.2.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
236
+ strawberry_graphql-0.273.2.dist-info/METADATA,sha256=_WrvVea-REDvLv_SJ4yLImf6pmWIJ4ZSNnGEsR2II_M,7444
237
+ strawberry_graphql-0.273.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
238
+ strawberry_graphql-0.273.2.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
239
+ strawberry_graphql-0.273.2.dist-info/RECORD,,