strawberry-graphql 0.283.1__py3-none-any.whl → 0.283.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.

Potentially problematic release.


This version of strawberry-graphql might be problematic. Click here for more details.

@@ -7,16 +7,16 @@ from graphql.execution import execute, subscribe
7
7
  from strawberry.types import ExecutionResult
8
8
 
9
9
  try:
10
- from graphql import (
11
- ExperimentalIncrementalExecutionResults as GraphQLIncrementalExecutionResults, # type: ignore[attr-defined]
10
+ from graphql import ( # type: ignore[attr-defined]
11
+ ExperimentalIncrementalExecutionResults as GraphQLIncrementalExecutionResults,
12
12
  )
13
- from graphql.execution import (
14
- InitialIncrementalExecutionResult, # type: ignore[attr-defined]
15
- experimental_execute_incrementally, # type: ignore[attr-defined]
13
+ from graphql.execution import ( # type: ignore[attr-defined]
14
+ InitialIncrementalExecutionResult,
15
+ experimental_execute_incrementally,
16
16
  )
17
- from graphql.type.directives import (
18
- GraphQLDeferDirective, # type: ignore[attr-defined]
19
- GraphQLStreamDirective, # type: ignore[attr-defined]
17
+ from graphql.type.directives import ( # type: ignore[attr-defined]
18
+ GraphQLDeferDirective,
19
+ GraphQLStreamDirective,
20
20
  )
21
21
 
22
22
  incremental_execution_directives = (
strawberry/types/field.py CHANGED
@@ -98,6 +98,10 @@ class StrawberryField(dataclasses.Field):
98
98
  if sys.version_info >= (3, 10):
99
99
  kwargs["kw_only"] = dataclasses.MISSING
100
100
 
101
+ # doc was added to python 3.14 and it is required
102
+ if sys.version_info >= (3, 14):
103
+ kwargs["doc"] = None
104
+
101
105
  super().__init__(
102
106
  default=default,
103
107
  default_factory=default_factory, # type: ignore
@@ -12,7 +12,7 @@ from typing import (
12
12
  Union,
13
13
  overload,
14
14
  )
15
- from typing_extensions import dataclass_transform
15
+ from typing_extensions import dataclass_transform, get_annotations
16
16
 
17
17
  from strawberry.exceptions import (
18
18
  InvalidSuperclassInterfaceError,
@@ -51,7 +51,8 @@ def _check_field_annotations(cls: builtins.type[Any]) -> None:
51
51
 
52
52
  https://github.com/python/cpython/blob/6fed3c85402c5ca704eb3f3189ca3f5c67a08d19/Lib/dataclasses.py#L881-L884
53
53
  """
54
- cls_annotations = cls.__dict__.get("__annotations__", {})
54
+ cls_annotations = get_annotations(cls)
55
+ # TODO: do we need this?
55
56
  cls.__annotations__ = cls_annotations
56
57
 
57
58
  for field_name, field_ in cls.__dict__.items():
@@ -110,9 +110,8 @@ def get_optional_annotation(annotation: type) -> type:
110
110
 
111
111
  # if we have multiple non none types we want to return a copy of this
112
112
  # type (normally a Union type).
113
-
114
113
  if len(non_none_types) > 1:
115
- return annotation.copy_with(non_none_types) # type: ignore[attr-defined]
114
+ return Union[non_none_types] # type: ignore
116
115
 
117
116
  return non_none_types[0]
118
117
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: strawberry-graphql
3
- Version: 0.283.1
3
+ Version: 0.283.2
4
4
  Summary: A library for creating GraphQL APIs
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -168,7 +168,7 @@ strawberry/sanic/utils.py,sha256=XjUVBFuBWfECBCZbx_YtrjQnFTUyIGTo7aISIeB22Gc,100
168
168
  strawberry/sanic/views.py,sha256=8Tl5pMYnbaju7WYxJImtJTwVi2XZBKWEwnSB-tYbZGw,5682
169
169
  strawberry/scalars.py,sha256=CGkG8CIfurXiYhidmW3qwy6M5BF_Mhih3wAEcWx_iBU,2278
170
170
  strawberry/schema/__init__.py,sha256=u1QCyDVQExUVDA20kyosKPz3TS5HMCN2NrXclhiFAL4,92
171
- strawberry/schema/_graphql_core.py,sha256=kvUhY5Z8e9aLvDX0lsjU78ZidTpnrFFe_mS0fW3O6VI,1702
171
+ strawberry/schema/_graphql_core.py,sha256=_ubCP_4ZZ1KwZGLlHTPPcUVPk_hDh6EOp2FxjCfyKxM,1642
172
172
  strawberry/schema/base.py,sha256=wqvEOQ_aVkfebk9SlG9zg1YXl3MlwxGZhxFRoIkAxu0,4053
173
173
  strawberry/schema/compat.py,sha256=xNpOEDfi-MODpplMGaKuKeQIVcr-tcAaKaU3TlBc1Zs,1873
174
174
  strawberry/schema/config.py,sha256=bkEMn0EkBRg2Tl6ZZH5hpOGBNiAw9QcOclt5dI_Yd1g,1217
@@ -210,7 +210,7 @@ strawberry/types/base.py,sha256=Bfa-5Wen8qR7m6tlSMRRGlGE-chRGMHjQMopfNdbbrk,1519
210
210
  strawberry/types/cast.py,sha256=fx86MkLW77GIximBAwUk5vZxSGwDqUA6XicXvz8EXwQ,916
211
211
  strawberry/types/enum.py,sha256=7bK7YUzlG117_V9x-f9hx5vogcCRF6UBUFteeKhjDHg,6306
212
212
  strawberry/types/execution.py,sha256=_Rl4akU174P_2mq3x1N1QTj0LgJn3CQ43hPFzN3rs_s,4075
213
- strawberry/types/field.py,sha256=u5Gh3AbaruSkGn8P2EnKhX98OzRXmPR8VAh59fhx6eE,20648
213
+ strawberry/types/field.py,sha256=5OXkvyMqKV-iKgz3jPV8Ekt37oGYVoqgJoXIaMWvYXU,20780
214
214
  strawberry/types/fields/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
215
215
  strawberry/types/fields/resolver.py,sha256=b6lxfw6AMOUFWm7vs7a9KzNkpR8b_S110DoIosrrWDQ,14679
216
216
  strawberry/types/graphql.py,sha256=gXKzawwKiow7hvoJhq5ApNJOMUCnKmvTiHaKY5CK1Lw,867
@@ -219,7 +219,7 @@ strawberry/types/lazy_type.py,sha256=dlP9VcMjZc9sdgriiQGzOZa0TToB6Ee7zpIP8h7TLC0
219
219
  strawberry/types/maybe.py,sha256=3TEY0S2qT_unEdYlPUW50HBuOIIaploZVy3JWpXdeeE,1161
220
220
  strawberry/types/mutation.py,sha256=cg-_O2WWnZ-GSwOIv0toSdxlGeY2lhBBxZ24AifJuSM,11978
221
221
  strawberry/types/nodes.py,sha256=RwZB43OT9BS3Cqjgq4AazqOfyq_y0GD2ysC86EDBv5U,5134
222
- strawberry/types/object_type.py,sha256=SdJF2RWDIrh0C99rEW64rbxMaLokG-J8NLybSqkUrcE,15766
222
+ strawberry/types/object_type.py,sha256=RibjwUzybpkzIXma5s7B4OWs4eqRKdI5Z8lAWcX0tfs,15793
223
223
  strawberry/types/private.py,sha256=DhJs50XVGtOXlxWZFkRpMxQ5_6oki0-x_WQsV1bGUxk,518
224
224
  strawberry/types/scalar.py,sha256=vUWGwAYgcfY26jQUdBJ1tGOvrBq92V0p9L8AWXM7bkk,6384
225
225
  strawberry/types/type_resolver.py,sha256=fH2ZOK4dAGgu8AMPi-JAXe_kEAbvvw2MCYXqbpx-kTc,6529
@@ -236,9 +236,9 @@ strawberry/utils/locate_definition.py,sha256=raABxyWE9MkhO5_w5tO8_xKHSZumRJCJt1Q
236
236
  strawberry/utils/logging.py,sha256=U1cseHGquN09YFhFmRkiphfASKCyK0HUZREImPgVb0c,746
237
237
  strawberry/utils/operation.py,sha256=ZgVOw3K2jQuLjNOYUHauF7itJD0QDNoPw9PBi0IYf6k,1234
238
238
  strawberry/utils/str_converters.py,sha256=-eH1Cl16IO_wrBlsGM-km4IY0IKsjhjnSNGRGOwQjVM,897
239
- strawberry/utils/typing.py,sha256=_M4ym89L_oquv3kxaRajshOoDJE-mj2hyCAs1quRmGA,14020
240
- strawberry_graphql-0.283.1.dist-info/METADATA,sha256=96SXgEQH3ER-m1XgB6MtoSSIVqbPeXQnlzNviStNB0A,7652
241
- strawberry_graphql-0.283.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
242
- strawberry_graphql-0.283.1.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
243
- strawberry_graphql-0.283.1.dist-info/licenses/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
244
- strawberry_graphql-0.283.1.dist-info/RECORD,,
239
+ strawberry/utils/typing.py,sha256=hfnwL-M0D9H-_-lpo_xG8CjLeSGx8yas0fZsmf5Rq9U,13990
240
+ strawberry_graphql-0.283.2.dist-info/METADATA,sha256=trgHKJF86GkzyNti07W_zqrsxjvZsRI2RbwhWv-l-i0,7652
241
+ strawberry_graphql-0.283.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
242
+ strawberry_graphql-0.283.2.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
243
+ strawberry_graphql-0.283.2.dist-info/licenses/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
244
+ strawberry_graphql-0.283.2.dist-info/RECORD,,