strawberry-graphql 0.283.0__py3-none-any.whl → 0.284.3__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.
- strawberry/aiohttp/test/client.py +8 -15
- strawberry/aiohttp/views.py +12 -15
- strawberry/annotation.py +19 -23
- strawberry/asgi/__init__.py +18 -17
- strawberry/asgi/test/client.py +6 -6
- strawberry/chalice/views.py +6 -6
- strawberry/channels/handlers/base.py +7 -8
- strawberry/channels/handlers/http_handler.py +18 -20
- strawberry/channels/handlers/ws_handler.py +10 -12
- strawberry/channels/router.py +3 -4
- strawberry/channels/testing.py +7 -9
- strawberry/cli/commands/codegen.py +7 -7
- strawberry/cli/commands/schema_codegen.py +1 -2
- strawberry/cli/commands/upgrade/__init__.py +1 -3
- strawberry/cli/commands/upgrade/_run_codemod.py +2 -2
- strawberry/codegen/plugins/print_operation.py +2 -2
- strawberry/codegen/plugins/python.py +2 -2
- strawberry/codegen/query_codegen.py +20 -30
- strawberry/codegen/types.py +32 -32
- strawberry/codemods/annotated_unions.py +2 -2
- strawberry/dataloader.py +28 -24
- strawberry/directive.py +6 -7
- strawberry/django/test/client.py +3 -3
- strawberry/django/views.py +16 -19
- strawberry/exceptions/__init__.py +4 -4
- strawberry/exceptions/conflicting_arguments.py +2 -2
- strawberry/exceptions/duplicated_type_name.py +4 -4
- strawberry/exceptions/exception.py +3 -3
- strawberry/exceptions/handler.py +8 -7
- strawberry/exceptions/invalid_argument_type.py +2 -2
- strawberry/exceptions/invalid_superclass_interface.py +2 -2
- strawberry/exceptions/invalid_union_type.py +4 -4
- strawberry/exceptions/missing_arguments_annotations.py +2 -2
- strawberry/exceptions/missing_dependencies.py +2 -4
- strawberry/exceptions/missing_field_annotation.py +2 -2
- strawberry/exceptions/missing_return_annotation.py +2 -2
- strawberry/exceptions/object_is_not_a_class.py +2 -2
- strawberry/exceptions/object_is_not_an_enum.py +2 -2
- strawberry/exceptions/permission_fail_silently_requires_optional.py +2 -2
- strawberry/exceptions/private_strawberry_field.py +2 -2
- strawberry/exceptions/scalar_already_registered.py +2 -2
- strawberry/exceptions/syntax.py +3 -3
- strawberry/exceptions/unresolved_field_type.py +2 -2
- strawberry/exceptions/utils/source_finder.py +25 -25
- strawberry/experimental/pydantic/_compat.py +8 -7
- strawberry/experimental/pydantic/conversion.py +2 -2
- strawberry/experimental/pydantic/conversion_types.py +2 -2
- strawberry/experimental/pydantic/error_type.py +10 -12
- strawberry/experimental/pydantic/fields.py +9 -15
- strawberry/experimental/pydantic/object_type.py +15 -23
- strawberry/experimental/pydantic/utils.py +1 -2
- strawberry/ext/mypy_plugin.py +12 -14
- strawberry/extensions/base_extension.py +2 -1
- strawberry/extensions/context.py +13 -18
- strawberry/extensions/directives.py +3 -1
- strawberry/extensions/field_extension.py +4 -4
- strawberry/extensions/max_aliases.py +1 -3
- strawberry/extensions/parser_cache.py +1 -2
- strawberry/extensions/query_depth_limiter.py +18 -14
- strawberry/extensions/runner.py +2 -2
- strawberry/extensions/tracing/apollo.py +3 -3
- strawberry/extensions/tracing/datadog.py +3 -3
- strawberry/extensions/tracing/opentelemetry.py +6 -8
- strawberry/extensions/tracing/utils.py +3 -1
- strawberry/extensions/utils.py +2 -2
- strawberry/extensions/validation_cache.py +1 -2
- strawberry/fastapi/context.py +6 -6
- strawberry/fastapi/router.py +33 -36
- strawberry/federation/argument.py +4 -5
- strawberry/federation/enum.py +18 -21
- strawberry/federation/field.py +94 -97
- strawberry/federation/object_type.py +56 -58
- strawberry/federation/scalar.py +27 -35
- strawberry/federation/schema.py +15 -16
- strawberry/federation/schema_directive.py +7 -6
- strawberry/federation/schema_directives.py +11 -11
- strawberry/federation/union.py +4 -4
- strawberry/flask/views.py +10 -11
- strawberry/http/__init__.py +14 -14
- strawberry/http/async_base_view.py +23 -28
- strawberry/http/base.py +11 -12
- strawberry/http/ides.py +2 -3
- strawberry/http/sync_base_view.py +11 -13
- strawberry/http/types.py +3 -3
- strawberry/litestar/controller.py +40 -35
- strawberry/permission.py +4 -6
- strawberry/printer/ast_from_value.py +3 -5
- strawberry/printer/printer.py +8 -13
- strawberry/quart/views.py +12 -14
- strawberry/relay/exceptions.py +4 -4
- strawberry/relay/fields.py +33 -32
- strawberry/relay/types.py +31 -34
- strawberry/relay/utils.py +2 -2
- strawberry/resolvers.py +2 -1
- strawberry/sanic/context.py +1 -0
- strawberry/sanic/utils.py +3 -3
- strawberry/sanic/views.py +11 -14
- strawberry/scalars.py +2 -2
- strawberry/schema/_graphql_core.py +5 -5
- strawberry/schema/base.py +32 -33
- strawberry/schema/compat.py +9 -9
- strawberry/schema/config.py +5 -2
- strawberry/schema/exceptions.py +1 -3
- strawberry/schema/name_converter.py +6 -6
- strawberry/schema/schema.py +55 -60
- strawberry/schema/schema_converter.py +27 -22
- strawberry/schema/types/base_scalars.py +1 -1
- strawberry/schema/types/concrete_type.py +5 -5
- strawberry/schema_codegen/__init__.py +3 -3
- strawberry/schema_directive.py +7 -6
- strawberry/subscriptions/protocols/graphql_transport_ws/handlers.py +5 -6
- strawberry/subscriptions/protocols/graphql_transport_ws/types.py +20 -20
- strawberry/subscriptions/protocols/graphql_ws/handlers.py +5 -6
- strawberry/subscriptions/protocols/graphql_ws/types.py +14 -14
- strawberry/test/client.py +18 -18
- strawberry/tools/create_type.py +2 -3
- strawberry/types/arguments.py +25 -26
- strawberry/types/auto.py +3 -4
- strawberry/types/base.py +25 -27
- strawberry/types/enum.py +22 -25
- strawberry/types/execution.py +14 -15
- strawberry/types/field.py +108 -108
- strawberry/types/fields/resolver.py +19 -21
- strawberry/types/info.py +5 -11
- strawberry/types/lazy_type.py +2 -3
- strawberry/types/maybe.py +12 -3
- strawberry/types/mutation.py +115 -118
- strawberry/types/nodes.py +2 -2
- strawberry/types/object_type.py +43 -63
- strawberry/types/scalar.py +37 -43
- strawberry/types/union.py +12 -14
- strawberry/utils/aio.py +12 -9
- strawberry/utils/await_maybe.py +3 -3
- strawberry/utils/deprecations.py +2 -2
- strawberry/utils/importer.py +1 -2
- strawberry/utils/inspect.py +4 -6
- strawberry/utils/logging.py +2 -2
- strawberry/utils/operation.py +4 -4
- strawberry/utils/typing.py +18 -83
- {strawberry_graphql-0.283.0.dist-info → strawberry_graphql-0.284.3.dist-info}/METADATA +2 -2
- strawberry_graphql-0.284.3.dist-info/RECORD +243 -0
- strawberry/utils/dataclasses.py +0 -37
- strawberry_graphql-0.283.0.dist-info/RECORD +0 -244
- {strawberry_graphql-0.283.0.dist-info → strawberry_graphql-0.284.3.dist-info}/WHEEL +0 -0
- {strawberry_graphql-0.283.0.dist-info → strawberry_graphql-0.284.3.dist-info}/entry_points.txt +0 -0
- {strawberry_graphql-0.283.0.dist-info → strawberry_graphql-0.284.3.dist-info}/licenses/LICENSE +0 -0
strawberry/utils/typing.py
CHANGED
|
@@ -4,22 +4,23 @@ import sys
|
|
|
4
4
|
import typing
|
|
5
5
|
from collections.abc import AsyncGenerator
|
|
6
6
|
from functools import lru_cache
|
|
7
|
+
from types import UnionType
|
|
7
8
|
from typing import ( # type: ignore
|
|
8
9
|
Annotated,
|
|
9
10
|
Any,
|
|
10
11
|
ClassVar,
|
|
11
12
|
ForwardRef,
|
|
12
13
|
Generic,
|
|
13
|
-
|
|
14
|
+
TypeGuard,
|
|
14
15
|
TypeVar,
|
|
15
16
|
Union,
|
|
16
17
|
_eval_type,
|
|
17
18
|
_GenericAlias,
|
|
18
19
|
_SpecialForm,
|
|
19
20
|
cast,
|
|
20
|
-
|
|
21
|
+
get_args,
|
|
22
|
+
get_origin,
|
|
21
23
|
)
|
|
22
|
-
from typing_extensions import TypeGuard, get_args, get_origin
|
|
23
24
|
|
|
24
25
|
|
|
25
26
|
@lru_cache
|
|
@@ -76,12 +77,8 @@ def is_union(annotation: object) -> bool:
|
|
|
76
77
|
"""Returns True if annotation is a Union."""
|
|
77
78
|
# this check is needed because unions declared with the new syntax `A | B`
|
|
78
79
|
# don't have a `__origin__` property on them, but they are instances of
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
from types import UnionType
|
|
82
|
-
|
|
83
|
-
if isinstance(annotation, UnionType):
|
|
84
|
-
return True
|
|
80
|
+
if isinstance(annotation, UnionType):
|
|
81
|
+
return True
|
|
85
82
|
|
|
86
83
|
# unions declared as Union[A, B] fall through to this check, even on python 3.10+
|
|
87
84
|
|
|
@@ -110,9 +107,8 @@ def get_optional_annotation(annotation: type) -> type:
|
|
|
110
107
|
|
|
111
108
|
# if we have multiple non none types we want to return a copy of this
|
|
112
109
|
# type (normally a Union type).
|
|
113
|
-
|
|
114
110
|
if len(non_none_types) > 1:
|
|
115
|
-
return
|
|
111
|
+
return Union[non_none_types] # type: ignore # noqa: UP007
|
|
116
112
|
|
|
117
113
|
return non_none_types[0]
|
|
118
114
|
|
|
@@ -130,10 +126,7 @@ def is_concrete_generic(annotation: type) -> bool:
|
|
|
130
126
|
|
|
131
127
|
|
|
132
128
|
def is_generic_subclass(annotation: type) -> bool:
|
|
133
|
-
return isinstance(annotation, type) and issubclass(
|
|
134
|
-
annotation,
|
|
135
|
-
Generic, # type:ignore
|
|
136
|
-
)
|
|
129
|
+
return isinstance(annotation, type) and issubclass(annotation, Generic)
|
|
137
130
|
|
|
138
131
|
|
|
139
132
|
def is_generic(annotation: type) -> bool:
|
|
@@ -151,7 +144,7 @@ def is_type_var(annotation: type) -> bool:
|
|
|
151
144
|
return isinstance(annotation, TypeVar)
|
|
152
145
|
|
|
153
146
|
|
|
154
|
-
def is_classvar(cls: type, annotation:
|
|
147
|
+
def is_classvar(cls: type, annotation: ForwardRef | str) -> bool:
|
|
155
148
|
"""Returns True if the annotation is a ClassVar."""
|
|
156
149
|
# This code was copied from the dataclassses cpython implementation to check
|
|
157
150
|
# if a field is annotated with ClassVar or not, taking future annotations
|
|
@@ -179,65 +172,20 @@ def type_has_annotation(type_: object, annotation: type) -> bool:
|
|
|
179
172
|
return False
|
|
180
173
|
|
|
181
174
|
|
|
182
|
-
def get_parameters(annotation: type) ->
|
|
175
|
+
def get_parameters(annotation: type) -> tuple[object] | tuple[()]:
|
|
183
176
|
if isinstance(annotation, _GenericAlias) or (
|
|
184
177
|
isinstance(annotation, type)
|
|
185
|
-
and issubclass(annotation, Generic)
|
|
178
|
+
and issubclass(annotation, Generic)
|
|
186
179
|
and annotation is not Generic
|
|
187
180
|
):
|
|
188
181
|
return annotation.__parameters__ # type: ignore[union-attr]
|
|
189
182
|
return () # pragma: no cover
|
|
190
183
|
|
|
191
184
|
|
|
192
|
-
@overload
|
|
193
|
-
def _ast_replace_union_operation(expr: ast.expr) -> ast.expr: ...
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
@overload
|
|
197
|
-
def _ast_replace_union_operation(expr: ast.Expr) -> ast.Expr: ...
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
def _ast_replace_union_operation(
|
|
201
|
-
expr: Union[ast.Expr, ast.expr],
|
|
202
|
-
) -> Union[ast.Expr, ast.expr]:
|
|
203
|
-
if isinstance(expr, ast.Expr) and isinstance(
|
|
204
|
-
expr.value, (ast.BinOp, ast.Subscript)
|
|
205
|
-
):
|
|
206
|
-
expr = ast.Expr(_ast_replace_union_operation(expr.value))
|
|
207
|
-
elif isinstance(expr, ast.BinOp):
|
|
208
|
-
left = _ast_replace_union_operation(expr.left)
|
|
209
|
-
right = _ast_replace_union_operation(expr.right)
|
|
210
|
-
expr = ast.Subscript(
|
|
211
|
-
ast.Name(id="Union"),
|
|
212
|
-
ast.Tuple([left, right], ast.Load()),
|
|
213
|
-
ast.Load(),
|
|
214
|
-
)
|
|
215
|
-
elif isinstance(expr, ast.Tuple):
|
|
216
|
-
expr = ast.Tuple(
|
|
217
|
-
[_ast_replace_union_operation(elt) for elt in expr.elts],
|
|
218
|
-
ast.Load(),
|
|
219
|
-
)
|
|
220
|
-
elif isinstance(expr, ast.Subscript):
|
|
221
|
-
if hasattr(ast, "Index") and isinstance(expr.slice, ast.Index):
|
|
222
|
-
expr = ast.Subscript(
|
|
223
|
-
expr.value,
|
|
224
|
-
ast.Index(_ast_replace_union_operation(expr.slice.value)), # type: ignore
|
|
225
|
-
ast.Load(),
|
|
226
|
-
)
|
|
227
|
-
elif isinstance(expr.slice, (ast.BinOp, ast.Tuple)):
|
|
228
|
-
expr = ast.Subscript(
|
|
229
|
-
expr.value,
|
|
230
|
-
_ast_replace_union_operation(expr.slice),
|
|
231
|
-
ast.Load(),
|
|
232
|
-
)
|
|
233
|
-
|
|
234
|
-
return expr
|
|
235
|
-
|
|
236
|
-
|
|
237
185
|
def _get_namespace_from_ast(
|
|
238
|
-
expr:
|
|
239
|
-
globalns:
|
|
240
|
-
localns:
|
|
186
|
+
expr: ast.Expr | ast.expr,
|
|
187
|
+
globalns: dict | None = None,
|
|
188
|
+
localns: dict | None = None,
|
|
241
189
|
) -> dict[str, type]:
|
|
242
190
|
from strawberry.types.lazy_type import StrawberryLazyReference
|
|
243
191
|
|
|
@@ -300,8 +248,8 @@ def _get_namespace_from_ast(
|
|
|
300
248
|
|
|
301
249
|
def eval_type(
|
|
302
250
|
type_: Any,
|
|
303
|
-
globalns:
|
|
304
|
-
localns:
|
|
251
|
+
globalns: dict | None = None,
|
|
252
|
+
localns: dict | None = None,
|
|
305
253
|
) -> type:
|
|
306
254
|
"""Evaluates a type, resolving forward references."""
|
|
307
255
|
from strawberry.parent import StrawberryParent
|
|
@@ -315,16 +263,6 @@ def eval_type(
|
|
|
315
263
|
if isinstance(type_, ForwardRef):
|
|
316
264
|
ast_obj = cast("ast.Expr", ast.parse(type_.__forward_arg__).body[0])
|
|
317
265
|
|
|
318
|
-
# For Python 3.10+, we can use the built-in _eval_type function directly.
|
|
319
|
-
# It will handle "|" notations properly
|
|
320
|
-
if sys.version_info < (3, 10):
|
|
321
|
-
ast_obj = _ast_replace_union_operation(ast_obj)
|
|
322
|
-
|
|
323
|
-
# We replaced "a | b" with "Union[a, b], so make sure Union can be resolved
|
|
324
|
-
# at globalns because it may not be there
|
|
325
|
-
if "Union" not in globalns:
|
|
326
|
-
globalns["Union"] = Union
|
|
327
|
-
|
|
328
266
|
globalns.update(_get_namespace_from_ast(ast_obj, globalns, localns))
|
|
329
267
|
|
|
330
268
|
type_ = ForwardRef(ast.unparse(ast_obj))
|
|
@@ -389,11 +327,8 @@ def eval_type(
|
|
|
389
327
|
|
|
390
328
|
# python 3.10 will return UnionType for origin, and it cannot be
|
|
391
329
|
# subscripted like Union[Foo, Bar]
|
|
392
|
-
if
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
if origin is UnionType:
|
|
396
|
-
origin = Union
|
|
330
|
+
if origin is UnionType:
|
|
331
|
+
origin = Union
|
|
397
332
|
|
|
398
333
|
type_ = (
|
|
399
334
|
origin[tuple(eval_type(a, globalns, localns) for a in args)]
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: strawberry-graphql
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.284.3
|
|
4
4
|
Summary: A library for creating GraphQL APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
License-File: LICENSE
|
|
7
7
|
Keywords: graphql,api,rest,starlette,async
|
|
8
8
|
Author: Patrick Arminio
|
|
9
9
|
Author-email: patrick.arminio@gmail.com
|
|
10
|
-
Requires-Python: >=3.
|
|
10
|
+
Requires-Python: >=3.10,<4.0
|
|
11
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Classifier: Topic :: Software Development :: Libraries
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
strawberry/__init__.py,sha256=tavG4mNFBNHhGBoFR2T7fhiCQ7P-ITHify10nkKBOJE,1544
|
|
2
|
+
strawberry/__main__.py,sha256=3U77Eu21mJ-LY27RG-JEnpbh6Z63wGOom4i-EoLtUcY,59
|
|
3
|
+
strawberry/aiohttp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
strawberry/aiohttp/test/__init__.py,sha256=4xxdUZtIISSOwjrcnmox7AvT4WWjowCm5bUuPdQneMg,71
|
|
5
|
+
strawberry/aiohttp/test/client.py,sha256=YL_e-C5hIjvmXMoDiIEjuU0MCkNTFHHjOH1_JqcFVNg,1675
|
|
6
|
+
strawberry/aiohttp/views.py,sha256=Gdt2owv0QjyRofcGOP_WfT2-Ntnk7K5LeT4qBeFEaOw,6529
|
|
7
|
+
strawberry/annotation.py,sha256=zJ7RM0gDJBrCZ-7RDpEtTNoQtUnvI40iH7wMLZKIfkA,15697
|
|
8
|
+
strawberry/asgi/__init__.py,sha256=JfWsNSw96MYuFT7pDBe871oFDPkjhqLA6wjQn7jt0w8,7203
|
|
9
|
+
strawberry/asgi/test/__init__.py,sha256=4xxdUZtIISSOwjrcnmox7AvT4WWjowCm5bUuPdQneMg,71
|
|
10
|
+
strawberry/asgi/test/client.py,sha256=Z-tSUYgzDR2K79DB47qYGxhUcKWqD3X2S6HgipOz9Mo,1440
|
|
11
|
+
strawberry/chalice/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
|
+
strawberry/chalice/views.py,sha256=vqo-nrQ8O3zbu7aMv1GUM1ygz4eclkDOIyNugluzCmQ,2753
|
|
13
|
+
strawberry/channels/__init__.py,sha256=AVmEwhzGHcTycMCnZYcZFFqZV8tKw9FJN4YXws-vWFA,433
|
|
14
|
+
strawberry/channels/handlers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
|
+
strawberry/channels/handlers/base.py,sha256=ozXaBfyeOdjpWJ78_E-enJIwLJiXuCcnHOXEvXaTuA0,7815
|
|
16
|
+
strawberry/channels/handlers/http_handler.py,sha256=mMmtPfA0z6OPWzKd0lT4kVH9hWLm17FDpIvU1SUf2zk,12382
|
|
17
|
+
strawberry/channels/handlers/ws_handler.py,sha256=PKCC7HRNsM2WiRBK9uiDV9epC0fgpyhZ1o3_TaSqtpU,6105
|
|
18
|
+
strawberry/channels/router.py,sha256=KEOSrZtdRZz3Izh0Cr8GgEDjfbfODbMXsc_CtXkbtXI,2010
|
|
19
|
+
strawberry/channels/testing.py,sha256=FaoHOyhoieBtTsQg6aM6l_yOMP40N6rrWc31u6CZEUQ,6512
|
|
20
|
+
strawberry/cli/__init__.py,sha256=szPgUPbmZKgoYVY1EsqnUFWi8onJVje3EUx3ACbnfA4,703
|
|
21
|
+
strawberry/cli/app.py,sha256=tTMBV1pdWqMcwjWO2yn-8oLDhMhfJvUzyQtWs75LWJ0,54
|
|
22
|
+
strawberry/cli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
|
+
strawberry/cli/commands/codegen.py,sha256=9PLkaXkXIVqS_Fug9GlOY7HX4sYTrSbRMJisV8XuXos,3771
|
|
24
|
+
strawberry/cli/commands/dev.py,sha256=WSyOtaApia746B-X3AyiaPQd4jQ506mNrTGUN0Iq7RI,1968
|
|
25
|
+
strawberry/cli/commands/export_schema.py,sha256=pyp_Q3BiO7lFH0L3mNPvr7UF8hlhcoUPqqBP4JPWUu0,1049
|
|
26
|
+
strawberry/cli/commands/locate_definition.py,sha256=aJJ_KeAnV-c8zTdWIhzcHUilUmCpqsmrVy24qHbyWKk,1001
|
|
27
|
+
strawberry/cli/commands/schema_codegen.py,sha256=bhSbqfs0_QkzqlLe8xbO0PG4wmCTjAUPPVxgma-mbn8,718
|
|
28
|
+
strawberry/cli/commands/server.py,sha256=nbIz-0l_EqQkvpSlg5h9eGFtfW3eSjxUt9bLgRelylo,1066
|
|
29
|
+
strawberry/cli/commands/upgrade/__init__.py,sha256=_6NkQsihWRTOjJVMc_LNDXk9QlqQbeqsRW3rGSsC4So,2491
|
|
30
|
+
strawberry/cli/commands/upgrade/_fake_progress.py,sha256=fefLgJwTXe4kG9RntdEJdzkPPRBK_pZqnmMH-pxD85Y,484
|
|
31
|
+
strawberry/cli/commands/upgrade/_run_codemod.py,sha256=rCtDDFAUGL6wjrmR_hPK-7NuFlZ5UGZmtzaV7efr5JU,2177
|
|
32
|
+
strawberry/cli/constants.py,sha256=MZ8JTo6YyS8t_mRtJJuNCQPiaKzyqjDbncizDb2pG-c,63
|
|
33
|
+
strawberry/cli/dev_server.py,sha256=u6PAAl6Un0SHdsHDWDnQ85VPCY9g5HTNi2VKOFgJl_A,864
|
|
34
|
+
strawberry/cli/utils/__init__.py,sha256=5h6QMXbY4zbWVGg8xpsKlgWSEsNgn1fcjbRrJjgzdEc,987
|
|
35
|
+
strawberry/cli/utils/load_schema.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
|
+
strawberry/codegen/__init__.py,sha256=qVfUJXv_2HqZTzi02An2V9auAseT9efi1f5APDG5DjA,250
|
|
37
|
+
strawberry/codegen/exceptions.py,sha256=x8Wrc3zdmgrvoMtB3U4c-mek7JEP-KGkbGC27kO6caE,365
|
|
38
|
+
strawberry/codegen/plugins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
39
|
+
strawberry/codegen/plugins/print_operation.py,sha256=ZEdj6MCRJ8SF_nkTXaHWOaFJDi6J0cjR6c8MGK50Ekk,6786
|
|
40
|
+
strawberry/codegen/plugins/python.py,sha256=lblKCfYUAOtaIy_ugguwKdGC3UDEpHvfeB6D2ld_728,6890
|
|
41
|
+
strawberry/codegen/plugins/typescript.py,sha256=LFEK2ZLz4tUukkwZvUTXhsi_cVca3ybsLaatsW5JA5g,3865
|
|
42
|
+
strawberry/codegen/query_codegen.py,sha256=RrX_G7-F4dYy80m49VOLmDShjCWidR9wEoOCCS6pb1k,30282
|
|
43
|
+
strawberry/codegen/types.py,sha256=ACRR9lNKo9htI9Mp0Cf3oEV2vu68zO7geHA9FdXvO4o,4171
|
|
44
|
+
strawberry/codemods/__init__.py,sha256=iXL0fq_VMhmSN3NFkQC4IwQn3pscfES61icODcJAjeo,268
|
|
45
|
+
strawberry/codemods/annotated_unions.py,sha256=YBnfTcf_DFSCAhyRsHvQzYDYNfLX0ww3C4HHuAPEneg,5975
|
|
46
|
+
strawberry/codemods/maybe_optional.py,sha256=PnFbh4kax7UMrsMOsqMF55Q3NN6jMPMxfs_25KmlB_A,4401
|
|
47
|
+
strawberry/codemods/update_imports.py,sha256=4n1m-mxVK7h4FnkrpWgxOOCswIqy9SisApWbh-oSZ3E,4622
|
|
48
|
+
strawberry/dataloader.py,sha256=X3ccWbssnQ_HPUhauLCKyO61A3M35qciaFUFkpgbbTk,7842
|
|
49
|
+
strawberry/directive.py,sha256=LMHRDDFQI5ejbQMN4EVRMakAx7mIUASsLaolyl3_U0Y,3582
|
|
50
|
+
strawberry/django/__init__.py,sha256=VZJQqZ0yX902z0w8vNafKiYT4fcxqlJwvei0Sje_Nzo,811
|
|
51
|
+
strawberry/django/apps.py,sha256=ZWw3Mzv1Cgy0T9xT8Jr2_dkCTZjT5WQABb34iqnu5pc,135
|
|
52
|
+
strawberry/django/context.py,sha256=XL85jDGAVnb2pwgm5uRUvIXwlGia3i-8ZVfKihf0T24,655
|
|
53
|
+
strawberry/django/test/__init__.py,sha256=4xxdUZtIISSOwjrcnmox7AvT4WWjowCm5bUuPdQneMg,71
|
|
54
|
+
strawberry/django/test/client.py,sha256=C6c1hHzjGX44tpoOoJxLWDUMMGitbHAjEPxKolUIADg,604
|
|
55
|
+
strawberry/django/views.py,sha256=apxR2T1k7jjprDnszvOt3ZW2IU_UNdCgZE6jvuTtKGo,7789
|
|
56
|
+
strawberry/exceptions/__init__.py,sha256=6rVQ6Pdmh4-fhVKzZ4ymz5dmalCzOBEaX77rb1Zbg5I,6596
|
|
57
|
+
strawberry/exceptions/conflicting_arguments.py,sha256=NaRXXWgb2mbszvPN1EehAu-K37YEMwOc9iPM9HlnenY,1568
|
|
58
|
+
strawberry/exceptions/duplicated_type_name.py,sha256=e3bfybhlZQVElcyqZA5FkZkfHTzz6Oe6Qy2YjKP8eSo,2185
|
|
59
|
+
strawberry/exceptions/exception.py,sha256=7-SGlL3EJ2DH3-h81hcW39OAvu7vy6DCpPabNBLJZR4,3429
|
|
60
|
+
strawberry/exceptions/exception_source.py,sha256=Krr9KprJLMuiDBYRzRYULvLIuSjd8gIaiXmPoPCHEDo,404
|
|
61
|
+
strawberry/exceptions/handler.py,sha256=rz-BXNutDVN98hCpu64lFr0PUs2cDRaOd8DSoNfsV5k,2684
|
|
62
|
+
strawberry/exceptions/invalid_argument_type.py,sha256=bcO1YyFAHimGG2uYy63s4egnpfvGeCdHU-SjEMBs1xY,2200
|
|
63
|
+
strawberry/exceptions/invalid_superclass_interface.py,sha256=hU_WVYVzrlONXyuLmBMld7TGHh3TMSyi_8MMzCsqJP8,1280
|
|
64
|
+
strawberry/exceptions/invalid_union_type.py,sha256=fQZD4eiY7uZSCivikXhDNi6q_ABQEDiUDV2a8cZbDSY,3591
|
|
65
|
+
strawberry/exceptions/missing_arguments_annotations.py,sha256=fnEhrKqcx5Cu8QMVflppdpfRzrqb6hcEvkgZMdn7ozw,1994
|
|
66
|
+
strawberry/exceptions/missing_dependencies.py,sha256=Aj-XrxynM-sYQH9kOwmLN5XCiIfCyTxonidq_qy1veM,797
|
|
67
|
+
strawberry/exceptions/missing_field_annotation.py,sha256=m4KRyECj1Agx3CAx6MqkEBHwOwp9aABwA09_Z5DykUY,1319
|
|
68
|
+
strawberry/exceptions/missing_return_annotation.py,sha256=9-OJ2uvLWS0U3-_Kg6ct7-qZe4Pcmdp3lsh_PkzzRIA,1389
|
|
69
|
+
strawberry/exceptions/object_is_not_a_class.py,sha256=W1z7jQARwNZzq3Px_zzPHipM2FjCx2ChiqbjTUDA11E,1995
|
|
70
|
+
strawberry/exceptions/object_is_not_an_enum.py,sha256=2pzOC3tRmRTs0_QGD6Wr9Pviwl8prZi22mSRdeLNl2w,1250
|
|
71
|
+
strawberry/exceptions/permission_fail_silently_requires_optional.py,sha256=KwMsvWbMqZedmUju7PkbhLjTE2P1Gf7JA6-zD1ig42w,1729
|
|
72
|
+
strawberry/exceptions/private_strawberry_field.py,sha256=aihHhJd-PyXdToz0B2iSnmesQGsYzslGBRVCiyof8zs,1315
|
|
73
|
+
strawberry/exceptions/scalar_already_registered.py,sha256=ypzqoqNsPZsQ6Qjcv0A3dGKBo5wIZNEIDu7leLjZEIM,1835
|
|
74
|
+
strawberry/exceptions/syntax.py,sha256=A8_qoYI-PEYCpxBCzrvDOrZOdz96rvh8Q4vxGgvtVIw,1724
|
|
75
|
+
strawberry/exceptions/unresolved_field_type.py,sha256=TZvJ_6Dg0IMhDE8IFx9ENLS5MR7m8u0R11MaOchX9xo,1864
|
|
76
|
+
strawberry/exceptions/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
77
|
+
strawberry/exceptions/utils/source_finder.py,sha256=PPgNivWC8M-Fj-Y-ZiAgOd3HD4kl3D6igdkuoyqAAdA,22487
|
|
78
|
+
strawberry/experimental/__init__.py,sha256=2HP5XtxL8ZKsPp4EDRAbMCqiP7p2V4Cca278JUGxnt0,102
|
|
79
|
+
strawberry/experimental/pydantic/__init__.py,sha256=UpO8wHNXGpoCYp34YStViInO1tsrGsMyhTVubTpJY7Y,255
|
|
80
|
+
strawberry/experimental/pydantic/_compat.py,sha256=T1GifIZsj8xgvT2cCHrsu1w0jil3U1gTpun28d0r6Z4,9747
|
|
81
|
+
strawberry/experimental/pydantic/conversion.py,sha256=uYngi914-U7BN8wflGuF0joOwu-4tsLUABqTO2OmO9g,4229
|
|
82
|
+
strawberry/experimental/pydantic/conversion_types.py,sha256=JQYIBOynAYLhu1zaJmfkhHX4uC6tELhVEapB0n2TFEs,912
|
|
83
|
+
strawberry/experimental/pydantic/error_type.py,sha256=GsQS9NdfsZ64N7O25XDHuLwsIhadlh7YytyHmclDzsI,4558
|
|
84
|
+
strawberry/experimental/pydantic/exceptions.py,sha256=pDMPL94ojuSGHxk8H8mI2pfWReG8BhqZ5T2eSxfOi9w,1486
|
|
85
|
+
strawberry/experimental/pydantic/fields.py,sha256=KFWJYUVe7HSTioDyMcRNGSARFc76nAr5I_P0kCQyLoc,2137
|
|
86
|
+
strawberry/experimental/pydantic/object_type.py,sha256=lqT_ex3XGTph9JILg5Em4Vn5NAwdxMQZgEQn2ArAvu8,12634
|
|
87
|
+
strawberry/experimental/pydantic/utils.py,sha256=0-DJyX8pXz14XQbxf9sih6T8ipLAGlQ_0xDtuaOoN9U,4018
|
|
88
|
+
strawberry/ext/LICENSE,sha256=_oY0TZg0b_sW0--0T44aMTpy2e2zF1Kiyn8E1qDiivo,1249
|
|
89
|
+
strawberry/ext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
90
|
+
strawberry/ext/dataclasses/LICENSE,sha256=WZgm35K_3NJwLqxpEHJJi7CWxVrwTumEz5D3Dtd7WnA,13925
|
|
91
|
+
strawberry/ext/dataclasses/README.md,sha256=WE3523o9gBGpa18ikiQhgEUNuuBJWR5tMKmjicrLOHU,1389
|
|
92
|
+
strawberry/ext/dataclasses/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
93
|
+
strawberry/ext/dataclasses/dataclasses.py,sha256=bTW8nRwflW7_JtGhzXiKhe9Kajha_fgCfR0jVKrCzBw,2287
|
|
94
|
+
strawberry/ext/mypy_plugin.py,sha256=v26lQXQFAagYMOHpklkarF1-M4HZapnO4SuTd-T9saQ,20438
|
|
95
|
+
strawberry/extensions/__init__.py,sha256=2TXnEVXumViXzBe-9ppb0CX90Wbc6644IE7aJQAEAXs,1308
|
|
96
|
+
strawberry/extensions/add_validation_rules.py,sha256=YwC_27jUpQ6DWcCB1RsuE1JD8R5rV7LAu5fVjdLchYs,1358
|
|
97
|
+
strawberry/extensions/base_extension.py,sha256=ExI6E6vToljQrg4U8cRy1cFe7i_Wm41SrZ6AHnyw-pI,2378
|
|
98
|
+
strawberry/extensions/context.py,sha256=YhYZo5FhpwhP8gtB7wtAnUJv7swE_1dptOVlfqgvRp0,7093
|
|
99
|
+
strawberry/extensions/directives.py,sha256=39YyHcO2c8p54nb0EdmZ-pDjIQP7cIg9wlVlMleU6Fg,3122
|
|
100
|
+
strawberry/extensions/disable_introspection.py,sha256=7FmktNvc9CzOJG9xf_nYG3LThs0cv-g2P-Kzlerna7w,717
|
|
101
|
+
strawberry/extensions/disable_validation.py,sha256=WaA7x6Q-K4IMnvx35OQ1UtokIKaxkWvO_OJO9fFM_vA,750
|
|
102
|
+
strawberry/extensions/field_extension.py,sha256=nAnAuExz6AOV0mCyymlBpYjpZOu5QERsrvEVXVMl-bI,5537
|
|
103
|
+
strawberry/extensions/mask_errors.py,sha256=_tCJUxnGRSf5uM2irg8OBVxzKfenT3C1_TD4sOj-5SQ,1892
|
|
104
|
+
strawberry/extensions/max_aliases.py,sha256=5jdDy9bnYl4QR_JgXsyHwsv1Gjpe6zpHlBkTgglOri4,2516
|
|
105
|
+
strawberry/extensions/max_tokens.py,sha256=53Gb0tSj-G7so_vLokdmtUal4KCXQBYLJi1LSIvdkXE,1045
|
|
106
|
+
strawberry/extensions/parser_cache.py,sha256=nSrHlPFyoFQ9RxAx44VEPFSUsSdJvw-gM4OqcLuI-pQ,1260
|
|
107
|
+
strawberry/extensions/pyinstrument.py,sha256=c5qmVQMmvA2Wtivvlgkvx1C2EMexoG-XFxMenaItGYU,753
|
|
108
|
+
strawberry/extensions/query_depth_limiter.py,sha256=N2ePfPp1irliNyqsa7MlbFtCl1l_BCkF_rSd7GDo2c4,9770
|
|
109
|
+
strawberry/extensions/runner.py,sha256=mD-b7t_Vn-1Sng4MzITCJIa8Q4uMMoGzeCuMPJro8P0,1860
|
|
110
|
+
strawberry/extensions/tracing/__init__.py,sha256=igoDJBlfh7vGhytJ5njx1qQzpxZOUmdfIaH4j5Kmt3E,1112
|
|
111
|
+
strawberry/extensions/tracing/apollo.py,sha256=t4rM3XIUSHW7sN9MT4P1jv8KWuX1yVm_OZOvxNioKGs,5887
|
|
112
|
+
strawberry/extensions/tracing/datadog.py,sha256=3zRuD9Uh6A5vuf0oRyzLyIGYl4lg-QYRAHIwE-PE1bc,5787
|
|
113
|
+
strawberry/extensions/tracing/opentelemetry.py,sha256=1_AMpbQiRcpLVTWjyPdAf-D8gd1LjTHWfbq_hycmhHs,7284
|
|
114
|
+
strawberry/extensions/tracing/utils.py,sha256=AQqPvdABa51ACCsH21kQgVu5OQdeqvog_c2t1Gla258,686
|
|
115
|
+
strawberry/extensions/utils.py,sha256=lXwLX7yJG8lubYhYoVpZ9gO_6neKeNavQNGnkVrIZn8,982
|
|
116
|
+
strawberry/extensions/validation_cache.py,sha256=DPR5HWAB7bPgCSjvHexvjg9ULiMd5kiS4tpUJvDwVSI,1416
|
|
117
|
+
strawberry/fastapi/__init__.py,sha256=p5qg9AlkYjNOWKcT4uRiebIpR6pIb1HqDMiDfF5O3tg,147
|
|
118
|
+
strawberry/fastapi/context.py,sha256=HXOpOwOpPMYbNgf7sQYvfNrqL7SQMNvtVvd6fiC2jKM,653
|
|
119
|
+
strawberry/fastapi/router.py,sha256=t0dstR3228qtaq0XnwZyIB7vsSW8nbYFNnQTWpo4MTU,11860
|
|
120
|
+
strawberry/federation/__init__.py,sha256=Pw01N0rG9o0NaUxXLMNGeW5oLENeWVx_d8Kuef1ES4s,549
|
|
121
|
+
strawberry/federation/argument.py,sha256=fFIoUZwEA8f4edmhzzIF_ytckiSrVkORU9vsQSMCSSo,820
|
|
122
|
+
strawberry/federation/enum.py,sha256=RTGlUtwrDw0Iu_5yq3y_EmGlY6IqHRhepy9OPSHRbD4,3068
|
|
123
|
+
strawberry/federation/field.py,sha256=mDZP2JnOrS9kp_0RU7h8uFTucgkC7GduuKso_A0p1IE,8548
|
|
124
|
+
strawberry/federation/mutation.py,sha256=5t2E419m4K2W6LoWEOzWgMdL2J0PwHnsffYkpChqqDQ,67
|
|
125
|
+
strawberry/federation/object_type.py,sha256=BRmz6EP-SKeM6NHUtBTS3gMV6Y2sZ3E134Kootz4EZ0,9198
|
|
126
|
+
strawberry/federation/scalar.py,sha256=4FLhz1-j1KlxNwT8sksgJiyekwBh94NEpxAD2yGM7c4,4414
|
|
127
|
+
strawberry/federation/schema.py,sha256=TXooodYiEYFi5ALC89pJCDNbB2ySWBxDtAvF3FCODCM,13196
|
|
128
|
+
strawberry/federation/schema_directive.py,sha256=8P4bZV3EvwPW1wmHACGOgr9i6zcKg20qJ-uF6Ph6TLs,1771
|
|
129
|
+
strawberry/federation/schema_directives.py,sha256=Dh_d85BHWg-H_vnpX0koP0gRz28EsJ5cTFNCyv4ukwc,6348
|
|
130
|
+
strawberry/federation/types.py,sha256=cqyx_-GJ5d__hac7bip_dQKm9NGR88D0N1JVnde0Ji8,360
|
|
131
|
+
strawberry/federation/union.py,sha256=JXkeDe1rwd6085YN7n-cjDHbo9Wdw6MppECku_f8V5I,1661
|
|
132
|
+
strawberry/field_extensions/__init__.py,sha256=0z6RG9jEO7jpAuyEaQhRI5A_30rdcvsBM0qMhLs8y2s,96
|
|
133
|
+
strawberry/field_extensions/input_mutation.py,sha256=JAyZ-dAlNOIKQLuMbo9e9Rqo8wyvGBmYXYHHwuM9IcM,2691
|
|
134
|
+
strawberry/file_uploads/__init__.py,sha256=v2-6FGBqnTnMPSUTFOiXpIutDMl-ga0PFtw5tKlcagk,50
|
|
135
|
+
strawberry/file_uploads/scalars.py,sha256=NRDeB7j8aotqIkz9r62ISTf4DrxQxEZYUuHsX5K16aU,161
|
|
136
|
+
strawberry/file_uploads/utils.py,sha256=-c6TbqUI-Dkb96hWCrZabh6TL2OabBuQNkCarOqgDm4,1181
|
|
137
|
+
strawberry/flask/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
138
|
+
strawberry/flask/views.py,sha256=SqOppkbGakcFIzBvJvxUJsVGgyjJmyUn6EqVwgJEgpw,4503
|
|
139
|
+
strawberry/http/__init__.py,sha256=sD8R6iyvu1KPj5u1yVECxlvl9wnutMRjgh3T_rqNDIU,1436
|
|
140
|
+
strawberry/http/async_base_view.py,sha256=PgWNPaf-tcEIMK7CZSVkzPn_MuqgjsgahCK0rZpzCjU,25344
|
|
141
|
+
strawberry/http/base.py,sha256=9-KMw1kNyIMvJMAGrPmiQGH2xojLhlmAefsxWLxzQLg,3239
|
|
142
|
+
strawberry/http/exceptions.py,sha256=5uud0ZijcMC7TS9iiqMTre9DVIe04judh8E8nSbwxy8,258
|
|
143
|
+
strawberry/http/ides.py,sha256=J3ymh1t-ldYoQfJpXQSFAfmijLjVeaYLvMvS5hbqRuw,571
|
|
144
|
+
strawberry/http/parse_content_type.py,sha256=CYHO8F9b9DP1gJ1xxPjc9L2GkBwsyC1O_GCEp1QOuG0,381
|
|
145
|
+
strawberry/http/sync_base_view.py,sha256=vdzokICOCrM9gsw3xN6A1oU_RyOPc10aarnK_vLVPtc,10223
|
|
146
|
+
strawberry/http/temporal_response.py,sha256=HTt65g-YxqlPGxjqvH5bzGoU1b3CctVR-9cmCRo5dUo,196
|
|
147
|
+
strawberry/http/types.py,sha256=XgKwn_Vigyv2478o1-4cUNDLGR5QoznyrF20SqI97MY,385
|
|
148
|
+
strawberry/http/typevars.py,sha256=Uu6NkKe3h7o29ZWwldq6sJy4ioSSeXODTCDRvY2hUpE,489
|
|
149
|
+
strawberry/litestar/__init__.py,sha256=zsXzg-mglCGUVO9iNXLm-yadoDSCK7k-zuyRqyvAh1w,237
|
|
150
|
+
strawberry/litestar/controller.py,sha256=QAkaLMZPDIeodsddAIXeAnB4WLsldXF8owI_fTagWqI,12962
|
|
151
|
+
strawberry/parent.py,sha256=JYFp-HGCgwbH2oB4uLSiIO4cVsoPaxX6lfYmxOKPkSg,1362
|
|
152
|
+
strawberry/permission.py,sha256=rGlXs7sx8ZUNkzF_WiwcOtGNr3RHn7oAexSKZB_n9bM,7497
|
|
153
|
+
strawberry/printer/__init__.py,sha256=DmepjmgtkdF5RxK_7yC6qUyRWn56U-9qeZMbkztYB9w,62
|
|
154
|
+
strawberry/printer/ast_from_value.py,sha256=9EE05OXmBtNnm2PTGkfnGhQ7n1ySU-ciECWYnWrF_jg,4965
|
|
155
|
+
strawberry/printer/printer.py,sha256=Nr4VoYt-YTn7GwKD5VHI2KnVJJcclNqzJvFnX_GOm7I,19147
|
|
156
|
+
strawberry/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
157
|
+
strawberry/quart/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
158
|
+
strawberry/quart/views.py,sha256=uPx6Vc0dOhpB92568sZ3OXKf4EZzxIR0pAaeCiaXaEc,6493
|
|
159
|
+
strawberry/relay/__init__.py,sha256=Vi4btvA_g6Cj9Tk_F9GCSegapIf2WqkOWV8y3P0cTCs,553
|
|
160
|
+
strawberry/relay/exceptions.py,sha256=Bk9pPFbb28tDjUiydHa-tFl-e01XukxmJeWoWT9L17M,4017
|
|
161
|
+
strawberry/relay/fields.py,sha256=QTU6zw3RlskXR-_FTwRyuvH6Sa9satz4xqnWW8rxpvQ,18249
|
|
162
|
+
strawberry/relay/types.py,sha256=-yJ_jpGKPH_CNycWPmXMyn7GjN3MbDcWYvb0dt2VD2Y,30340
|
|
163
|
+
strawberry/relay/utils.py,sha256=y0orTN2JabDswl2VnVorBmLvVZ0lUrZmiBR0j2llhFk,5540
|
|
164
|
+
strawberry/resolvers.py,sha256=j2sIi-jI2PrnO3if202l8VBuwQQxblPgRupEaDUu-lA,287
|
|
165
|
+
strawberry/sanic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
166
|
+
strawberry/sanic/context.py,sha256=GSp92ROADlmEF_RMcvESxbY7gNZYRlv7HhUFgB-Tgsk,845
|
|
167
|
+
strawberry/sanic/utils.py,sha256=a4Nqt2aS5B_e0KZaOlz3hnOdTnNRJg84K7gVReEwl_s,981
|
|
168
|
+
strawberry/sanic/views.py,sha256=37TM3dI10ll-U8vNrCVDIL3TtAYxh6-kjHdL--jnk_U,5601
|
|
169
|
+
strawberry/scalars.py,sha256=y39n1WF1NpcChJfde2OH1QvheN5Ae1ASjIqbAkqjpZY,2265
|
|
170
|
+
strawberry/schema/__init__.py,sha256=u1QCyDVQExUVDA20kyosKPz3TS5HMCN2NrXclhiFAL4,92
|
|
171
|
+
strawberry/schema/_graphql_core.py,sha256=1sorm44bnsD52NdVs0HNzmn4CQZzWgtYI34skjpTKqQ,1675
|
|
172
|
+
strawberry/schema/base.py,sha256=KKxgauEu7KfYtW-yCykQI8gKsXF9iSxTQhwIvbtSw7o,3932
|
|
173
|
+
strawberry/schema/compat.py,sha256=NgUo1a1lUI6hOvtPUdsMsasYjcmt3tzv9380LNe52qU,1813
|
|
174
|
+
strawberry/schema/config.py,sha256=qkcVlKBBNpZfZw5njZfGVYGbAyzxFxV3nEtGv4dfR_8,1269
|
|
175
|
+
strawberry/schema/exceptions.py,sha256=SaEWtahVAg_f43coyg2h7H2UMZP10CZ_GJg72khBIAs,1105
|
|
176
|
+
strawberry/schema/name_converter.py,sha256=HYXJQ3oeBVHGwlLwrLETl37xW5VWKl_5I6RCvzLCisk,6906
|
|
177
|
+
strawberry/schema/schema.py,sha256=OfN7Y1Q8EmGKO-4wPh36-ycBcK9rWMBG-QtCl896xUI,39339
|
|
178
|
+
strawberry/schema/schema_converter.py,sha256=l9BOJKmfDnw8LlpK2xmIv_dxYparW3LkKqUMmvSEiyo,40710
|
|
179
|
+
strawberry/schema/types/__init__.py,sha256=oHO3COWhL3L1KLYCJNY1XFf5xt2GGtHiMC-UaYbFfnA,68
|
|
180
|
+
strawberry/schema/types/base_scalars.py,sha256=4gMBxSgzG8_u70J-Q-tWJAiUoUErV2PSr_d3kXRy8Fo,1980
|
|
181
|
+
strawberry/schema/types/concrete_type.py,sha256=Y6OE-7HOMSX_CSShGzexlpzmvfOMwSm9clqdgJjn1aU,757
|
|
182
|
+
strawberry/schema/types/scalar.py,sha256=bg9AumdmYUBuvaKoEZtP9YKJ7lwMtDMCWFTsZQwpdQY,2375
|
|
183
|
+
strawberry/schema/validation_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
184
|
+
strawberry/schema/validation_rules/maybe_null.py,sha256=RrIq1yV5_2YxIYN7jx8AaY6O_pqxKtylbM1IygFz5z4,5624
|
|
185
|
+
strawberry/schema/validation_rules/one_of.py,sha256=fPuYzCyLT7p9y7dHF_sWTImArTQaEhyF664lZijB1Gw,2629
|
|
186
|
+
strawberry/schema_codegen/__init__.py,sha256=9xfWzvdNrD-k8UNv6-5gUbW1ZYVjaQt0HIy7bXI6y2o,24352
|
|
187
|
+
strawberry/schema_directive.py,sha256=H5tv1npCkEa-mUkzQ9nilNI3zTGEAhyagRcDwj5Rujw,2025
|
|
188
|
+
strawberry/schema_directives.py,sha256=KGKFWCODjm1Ah9qNV_bBwbic7Mld4qLWnWQkev-PG8A,175
|
|
189
|
+
strawberry/static/apollo-sandbox.html,sha256=2XzkbE0dqsFHqehE-jul9_J9TFOpwA6Ylrlo0Kdx_9w,973
|
|
190
|
+
strawberry/static/graphiql.html,sha256=0e3pvTnAet-lNEqA_pgJ8Ak2CdMt34zPKMMMzpAkEVU,4257
|
|
191
|
+
strawberry/static/pathfinder.html,sha256=0DPx9AmJ2C_sJstFXnWOz9k5tVQHeHaK7qdVY4lAlmk,1547
|
|
192
|
+
strawberry/streamable.py,sha256=8dqvKAv_Nhp8vEi4PUYyziCt3SUyCr6ZuqCNZ46Mqno,611
|
|
193
|
+
strawberry/subscriptions/__init__.py,sha256=1VGmiCzFepqRFyCikagkUoHHdoTG3XYlFu9GafoQMws,170
|
|
194
|
+
strawberry/subscriptions/protocols/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
195
|
+
strawberry/subscriptions/protocols/graphql_transport_ws/__init__.py,sha256=wN6dkMu6WiaIZTE19PGoN9xXpIN_RdDE_q7F7ZgjCxk,138
|
|
196
|
+
strawberry/subscriptions/protocols/graphql_transport_ws/handlers.py,sha256=HDFd6dCzfE1tXpO6VL-Utb-CUBUbQiAH2Smah78NECU,15085
|
|
197
|
+
strawberry/subscriptions/protocols/graphql_transport_ws/types.py,sha256=v2Y73nDLzhIzkc7gYRSPCw2CYDkGYIX2vc1Dl_PjtHQ,2137
|
|
198
|
+
strawberry/subscriptions/protocols/graphql_ws/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
199
|
+
strawberry/subscriptions/protocols/graphql_ws/handlers.py,sha256=qMC5myBk5Ea1GHSyzBFGlED5yTb3t3B6RWG-fHwHtyI,8424
|
|
200
|
+
strawberry/subscriptions/protocols/graphql_ws/types.py,sha256=rZwtRXmAPhZqxUwmycbGjgavYmC0fuvIs4jFfpekfc4,2021
|
|
201
|
+
strawberry/test/__init__.py,sha256=lKVbKJDBnrYSPYHIKrg54UpaZcSoL93Z01zOpA1IzZM,115
|
|
202
|
+
strawberry/test/client.py,sha256=qrw5WX_FNT7EX53kGdYxM6ToE33nM3_He-SuADeMU9Q,6355
|
|
203
|
+
strawberry/tools/__init__.py,sha256=pdGpZx8wpq03VfUZJyF9JtYxZhGqzzxCiipsalWxJX4,127
|
|
204
|
+
strawberry/tools/create_type.py,sha256=lYnqXMaecEWc0CtC2lGhX2mE--6S22q_V8GiIkHlGqw,2295
|
|
205
|
+
strawberry/tools/merge_types.py,sha256=hUMRRNM28FyPp70jRA3d4svv9WoEBjaNpihBt3DaY0I,1023
|
|
206
|
+
strawberry/types/__init__.py,sha256=baWEdDkkmCcITOhkg2hNUOenrNV1OYdxGE5qgvIRwwU,351
|
|
207
|
+
strawberry/types/arguments.py,sha256=sSpUqtdsg1HPI4j4hITnUlhrhEFhrsHpcPH6oY2LbSY,11640
|
|
208
|
+
strawberry/types/auto.py,sha256=4sDflIg-Kz-QpK7Qo7bCSFblw7VE-0752rgayukFznU,2954
|
|
209
|
+
strawberry/types/base.py,sha256=ulSIqEd33A2CpjygonBP5hZa84w_N_MxQfm2PmXzwsY,15103
|
|
210
|
+
strawberry/types/cast.py,sha256=fx86MkLW77GIximBAwUk5vZxSGwDqUA6XicXvz8EXwQ,916
|
|
211
|
+
strawberry/types/enum.py,sha256=pCRwbq5XPsvnKfSafc3FfRKJgmGmF2TllsTfftKWH_k,6205
|
|
212
|
+
strawberry/types/execution.py,sha256=z84AekAD_V_F4vGGHMPMGlAT0Htiw5JhEVvw1F9sGYQ,4019
|
|
213
|
+
strawberry/types/field.py,sha256=-E5jfq7YXzI2CUepttfGzgmXFA1BTR2hmts44P-JpEk,20422
|
|
214
|
+
strawberry/types/fields/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
215
|
+
strawberry/types/fields/resolver.py,sha256=8r5CfT9JHCiNyP-RIaNDZIS96-iF8seQPYekG-78vUw,14586
|
|
216
|
+
strawberry/types/graphql.py,sha256=gXKzawwKiow7hvoJhq5ApNJOMUCnKmvTiHaKY5CK1Lw,867
|
|
217
|
+
strawberry/types/info.py,sha256=1MTarr040KSsPPdrVx8sDHtKudEfH0LRgQ4adk_1FKA,4698
|
|
218
|
+
strawberry/types/lazy_type.py,sha256=GYy4PnKtZ48ywW-_A-6Ul8sbHRlB0Tc39ui5DMIja4U,5077
|
|
219
|
+
strawberry/types/maybe.py,sha256=hFx-fWvD9XWRK-2tMEzX16pf6Ix-YigzyRmxhmWpwC4,1508
|
|
220
|
+
strawberry/types/mutation.py,sha256=vcrKt1VpcS6SLl1WKfcR-NTAqfQ12LpzjwgT5Bx-U3Q,11549
|
|
221
|
+
strawberry/types/nodes.py,sha256=bM88j05rMIQ5OTS4RqKeU3kjo38MM-hA3Hrmh3IreV0,5121
|
|
222
|
+
strawberry/types/object_type.py,sha256=uv7nBxL1JF61i9XeZbU4NujUtAYmCu7cAingNRDkL28,15179
|
|
223
|
+
strawberry/types/private.py,sha256=DhJs50XVGtOXlxWZFkRpMxQ5_6oki0-x_WQsV1bGUxk,518
|
|
224
|
+
strawberry/types/scalar.py,sha256=Axk3q75-VeaEHLCeTT3V8E5U_UywlHqUnBXSW4azW7g,6153
|
|
225
|
+
strawberry/types/type_resolver.py,sha256=fH2ZOK4dAGgu8AMPi-JAXe_kEAbvvw2MCYXqbpx-kTc,6529
|
|
226
|
+
strawberry/types/union.py,sha256=8MZoHNwh0RyPiOI6Gykeb1hMQBBL5ucyYJnMnP6Mkk8,10166
|
|
227
|
+
strawberry/types/unset.py,sha256=7DVK-WWxVLo41agvavTvIbphE42BmY8UpGolXfasIvw,1682
|
|
228
|
+
strawberry/utils/__init__.py,sha256=wuuNvKjcMfE0l4lqrlC-cc0_SR4hV19gNBJ3Mcn7l3A,141
|
|
229
|
+
strawberry/utils/aio.py,sha256=Nc-h2siURQKTUER3olm1ltOn2wd7ZehQ1FDICYOeboI,2201
|
|
230
|
+
strawberry/utils/await_maybe.py,sha256=9TZrO45BXHh7FT4THN6JfM0vtQ5kR0NqL2NfjBTB3OI,463
|
|
231
|
+
strawberry/utils/deprecations.py,sha256=QLu8PA7GZojAzggsHV-TcSU__VjihYUx8Oo-4AsDaCs,766
|
|
232
|
+
strawberry/utils/importer.py,sha256=tTVg5rTpPdPFkpkIIRJSCgEiFfzC-UgVOs5UEYLdh2A,598
|
|
233
|
+
strawberry/utils/inspect.py,sha256=OTG6J93DUY2oMMSJfIc4QVdS9U1oYMMe9XflmnOT-_g,3408
|
|
234
|
+
strawberry/utils/locate_definition.py,sha256=raABxyWE9MkhO5_w5tO8_xKHSZumRJCJt1QY1OgHO-M,1429
|
|
235
|
+
strawberry/utils/logging.py,sha256=Dnivjd0ZhK_lAvjvuyCDkEWDhuURBoK9d3Kt_mIqbRg,733
|
|
236
|
+
strawberry/utils/operation.py,sha256=Qs3ttbuC415xEVqmJ6YsWQpJNUo8CZJq9AoMB-yV65w,1215
|
|
237
|
+
strawberry/utils/str_converters.py,sha256=-eH1Cl16IO_wrBlsGM-km4IY0IKsjhjnSNGRGOwQjVM,897
|
|
238
|
+
strawberry/utils/typing.py,sha256=eE9NeMfASeXRstbjLnQFfOPymcSX8xwg3FGw_HCp95E,11828
|
|
239
|
+
strawberry_graphql-0.284.3.dist-info/METADATA,sha256=kUbJdZukpFctQuhgiSiGNJUNYHkUogPCFFwuaW2BhMg,7653
|
|
240
|
+
strawberry_graphql-0.284.3.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
241
|
+
strawberry_graphql-0.284.3.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
|
|
242
|
+
strawberry_graphql-0.284.3.dist-info/licenses/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
|
|
243
|
+
strawberry_graphql-0.284.3.dist-info/RECORD,,
|
strawberry/utils/dataclasses.py
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
import sys
|
|
4
|
-
from dataclasses import ( # type: ignore
|
|
5
|
-
_FIELD,
|
|
6
|
-
_FIELD_INITVAR,
|
|
7
|
-
_FIELDS,
|
|
8
|
-
_POST_INIT_NAME,
|
|
9
|
-
_set_new_attribute,
|
|
10
|
-
)
|
|
11
|
-
from typing import Any
|
|
12
|
-
|
|
13
|
-
from strawberry.ext.dataclasses.dataclasses import dataclass_init_fn
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
def add_custom_init_fn(cls: Any) -> None:
|
|
17
|
-
fields = [
|
|
18
|
-
f
|
|
19
|
-
for f in getattr(cls, _FIELDS).values()
|
|
20
|
-
if f._field_type in (_FIELD, _FIELD_INITVAR)
|
|
21
|
-
]
|
|
22
|
-
globals_ = sys.modules[cls.__module__].__dict__
|
|
23
|
-
|
|
24
|
-
_set_new_attribute(
|
|
25
|
-
cls,
|
|
26
|
-
"__init__",
|
|
27
|
-
dataclass_init_fn(
|
|
28
|
-
fields=fields,
|
|
29
|
-
frozen=False,
|
|
30
|
-
has_post_init=hasattr(cls, _POST_INIT_NAME),
|
|
31
|
-
self_name="__dataclass_self__" if "self" in fields else "self",
|
|
32
|
-
globals_=globals_,
|
|
33
|
-
),
|
|
34
|
-
)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
__all__ = ["add_custom_init_fn"]
|