strawberry-graphql 0.231.0__py3-none-any.whl → 0.232.0__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/field.py CHANGED
@@ -49,7 +49,7 @@ T = TypeVar("T")
49
49
  _RESOLVER_TYPE = Union[
50
50
  StrawberryResolver[T],
51
51
  Callable[..., T],
52
- Callable[..., Coroutine[T, Any, Any]],
52
+ Callable[..., Coroutine[Any, Any, T]],
53
53
  Callable[..., Awaitable[T]],
54
54
  "staticmethod[Any, T]",
55
55
  "classmethod[Any, Any, T]",
@@ -278,6 +278,12 @@ def _get_namespace_from_ast(
278
278
 
279
279
  for elt in cast(ast.Tuple, expr_slice).elts:
280
280
  extra.update(_get_namespace_from_ast(elt, globalns, localns))
281
+ elif (
282
+ isinstance(expr, ast.Subscript)
283
+ and isinstance(expr.value, ast.Name)
284
+ and expr.value.id in {"list", "List"}
285
+ ):
286
+ extra.update(_get_namespace_from_ast(expr.slice, globalns, localns))
281
287
  elif (
282
288
  isinstance(expr, ast.Subscript)
283
289
  and isinstance(expr.value, ast.Name)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: strawberry-graphql
3
- Version: 0.231.0
3
+ Version: 0.232.0
4
4
  Summary: A library for creating GraphQL APIs
5
5
  Home-page: https://strawberry.rocks/
6
6
  License: MIT
@@ -138,7 +138,7 @@ strawberry/federation/schema_directive.py,sha256=V_8ytK_cbVoVRhFle0o9DTQkrP1k-xw
138
138
  strawberry/federation/schema_directives.py,sha256=Awb-BqICDptYtDNRF3BUNnbNcrsSTDN8AWAwKxVZ3UQ,6139
139
139
  strawberry/federation/types.py,sha256=mM70g1aLgjplOc3SdtuJjy7NAKFLv35Z4BDC4s_j5us,301
140
140
  strawberry/federation/union.py,sha256=QXeh-nhApqFtXa3To9MX_IwvtwErZBhWYnssUK7JB2E,1005
141
- strawberry/field.py,sha256=kbHJcCbJe3vRGjZOAQsfXz9WmUNV2zvOSPbgYiOd8jA,18887
141
+ strawberry/field.py,sha256=29EjOTMHz7Zs_0fDG8EsIbvhW2kHU5PbRnYzKVhmlwg,18887
142
142
  strawberry/field_extensions/__init__.py,sha256=0z6RG9jEO7jpAuyEaQhRI5A_30rdcvsBM0qMhLs8y2s,96
143
143
  strawberry/field_extensions/input_mutation.py,sha256=a2zK97Fc5biqBt2ZlUPEPTQgMTRx6sJCSd3hSsjLSxI,2650
144
144
  strawberry/file_uploads/__init__.py,sha256=v2-6FGBqnTnMPSUTFOiXpIutDMl-ga0PFtw5tKlcagk,50
@@ -244,9 +244,9 @@ strawberry/utils/inspect.py,sha256=6z-tJpiWWm6E4-O6OUfhu689W9k1uY0m3FDwAfVCiNs,2
244
244
  strawberry/utils/logging.py,sha256=flS7hV0JiIOEdXcrIjda4WyIWix86cpHHFNJL8gl1y4,713
245
245
  strawberry/utils/operation.py,sha256=Um-tBCPl3_bVFN2Ph7o1mnrxfxBes4HFCj6T0x4kZxE,1135
246
246
  strawberry/utils/str_converters.py,sha256=avIgPVLg98vZH9mA2lhzVdyyjqzLsK2NdBw9mJQ02Xk,813
247
- strawberry/utils/typing.py,sha256=u9vUmf0F57s9OL_qBK4oLlQtkI__XuLRAQ8ryNBnPgQ,13491
248
- strawberry_graphql-0.231.0.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
249
- strawberry_graphql-0.231.0.dist-info/METADATA,sha256=3NbiGE6mrkzCoyeE_NBvouXWuXo4YMV-ynYQdvUbGtI,7821
250
- strawberry_graphql-0.231.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
251
- strawberry_graphql-0.231.0.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
252
- strawberry_graphql-0.231.0.dist-info/RECORD,,
247
+ strawberry/utils/typing.py,sha256=K31YP0DftNDBhsk1yhW0BmYoEegU8nWOD26dvkRx2Xo,13717
248
+ strawberry_graphql-0.232.0.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
249
+ strawberry_graphql-0.232.0.dist-info/METADATA,sha256=pIsxpHuJ165j_6NJGb__iaPuvA96f5hjLtUZWydkZX8,7821
250
+ strawberry_graphql-0.232.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
251
+ strawberry_graphql-0.232.0.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
252
+ strawberry_graphql-0.232.0.dist-info/RECORD,,