strawberry-graphql 0.238.0__py3-none-any.whl → 0.238.1__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.
@@ -1,10 +1,11 @@
1
1
  from __future__ import annotations as _
2
2
 
3
+ import asyncio
3
4
  import inspect
4
5
  import sys
5
6
  import warnings
6
7
  from functools import cached_property
7
- from inspect import isasyncgenfunction, iscoroutinefunction
8
+ from inspect import isasyncgenfunction
8
9
  from typing import (
9
10
  TYPE_CHECKING,
10
11
  Any,
@@ -171,6 +172,13 @@ PARENT_PARAMSPEC = ReservedType(name=None, type=StrawberryParent)
171
172
 
172
173
  T = TypeVar("T")
173
174
 
175
+ # in python >= 3.12 coroutine functions are market using inspect.markcoroutinefunction,
176
+ # which should be checked with inspect.iscoroutinefunction instead of asyncio.iscoroutinefunction
177
+ if hasattr(inspect, "markcoroutinefunction"):
178
+ iscoroutinefunction = inspect.iscoroutinefunction
179
+ else:
180
+ iscoroutinefunction = asyncio.iscoroutinefunction # type: ignore[assignment]
181
+
174
182
 
175
183
  class StrawberryResolver(Generic[T]):
176
184
  RESERVED_PARAMSPEC: Tuple[ReservedParameterSpecification, ...] = (
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: strawberry-graphql
3
- Version: 0.238.0
3
+ Version: 0.238.1
4
4
  Summary: A library for creating GraphQL APIs
5
5
  Home-page: https://strawberry.rocks/
6
6
  License: MIT
@@ -218,7 +218,7 @@ strawberry/types/enum.py,sha256=E_ck94hgZP6YszWAso9UvCLUKRhd5KclwnIvo5PibZg,5965
218
218
  strawberry/types/execution.py,sha256=SoU_imuH9bu1onB9btkYfpB-zUgHES_E_M_WniraEXk,2851
219
219
  strawberry/types/field.py,sha256=jgliRsA4BLNKXXaj5fC7pBI8_USnTVjOF9OEVMV-hYk,21598
220
220
  strawberry/types/fields/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
221
- strawberry/types/fields/resolver.py,sha256=EoNFUbz_cV6QH_jHi5uMtgd5EnE_fnvbJPTWeNpYL6M,13992
221
+ strawberry/types/fields/resolver.py,sha256=eDVUsNwteKZOK8fKPwESAz4hOAeDIhalH5BgHmqab_Y,14361
222
222
  strawberry/types/graphql.py,sha256=Hnt7RplzBdcthNYxYB4PA3LqffG99ICQSgSrDa28bJQ,717
223
223
  strawberry/types/info.py,sha256=Y5nVRPJBwKaqT8CtSrMGpWdsgT_eW88dJXNwMAKNG0k,4750
224
224
  strawberry/types/lazy_type.py,sha256=sDQZYR-rEqVhsiBsnyY7y2qcC21luJgtJqrc0MbsnQM,5098
@@ -243,8 +243,8 @@ strawberry/utils/logging.py,sha256=U1cseHGquN09YFhFmRkiphfASKCyK0HUZREImPgVb0c,7
243
243
  strawberry/utils/operation.py,sha256=SSXxN-vMqdHO6W2OZtip-1z7y4_A-eTVFdhDvhKeLCk,1193
244
244
  strawberry/utils/str_converters.py,sha256=KGd7QH90RevaJjH6SQEkiVVsb8KuhJr_wv5AsI7UzQk,897
245
245
  strawberry/utils/typing.py,sha256=tUHHX2YTGX417EEQHB6j0B8-p-fg31ZI8csc9SUoq2I,14260
246
- strawberry_graphql-0.238.0.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
247
- strawberry_graphql-0.238.0.dist-info/METADATA,sha256=QyzfeHo1tGJ5zaJ3w5B7DcdL_4P1XXgZWNDjxyrnUYU,7707
248
- strawberry_graphql-0.238.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
249
- strawberry_graphql-0.238.0.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
250
- strawberry_graphql-0.238.0.dist-info/RECORD,,
246
+ strawberry_graphql-0.238.1.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
247
+ strawberry_graphql-0.238.1.dist-info/METADATA,sha256=ruddJlJrH2DZIITGIVRKLD7wl9M9CfrIHIgtnZrKJUg,7707
248
+ strawberry_graphql-0.238.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
249
+ strawberry_graphql-0.238.1.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
250
+ strawberry_graphql-0.238.1.dist-info/RECORD,,