strawberry-graphql 0.289.6__py3-none-any.whl → 0.289.8__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/file_uploads/__init__.py +2 -2
- strawberry/file_uploads/scalars.py +10 -1
- strawberry/schema/types/scalar.py +2 -7
- strawberry/types/field.py +4 -5
- {strawberry_graphql-0.289.6.dist-info → strawberry_graphql-0.289.8.dist-info}/METADATA +1 -1
- {strawberry_graphql-0.289.6.dist-info → strawberry_graphql-0.289.8.dist-info}/RECORD +9 -9
- {strawberry_graphql-0.289.6.dist-info → strawberry_graphql-0.289.8.dist-info}/WHEEL +0 -0
- {strawberry_graphql-0.289.6.dist-info → strawberry_graphql-0.289.8.dist-info}/entry_points.txt +0 -0
- {strawberry_graphql-0.289.6.dist-info → strawberry_graphql-0.289.8.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
from .scalars import Upload
|
|
1
|
+
from .scalars import Upload, UploadDefinition
|
|
2
2
|
|
|
3
|
-
__all__ = ["Upload"]
|
|
3
|
+
__all__ = ["Upload", "UploadDefinition"]
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
from typing import NewType
|
|
2
2
|
|
|
3
|
+
from strawberry.types.scalar import scalar
|
|
4
|
+
|
|
3
5
|
Upload = NewType("Upload", bytes)
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
UploadDefinition = scalar(
|
|
8
|
+
name="Upload",
|
|
9
|
+
description="Represents a file upload.",
|
|
10
|
+
serialize=lambda v: v,
|
|
11
|
+
parse_value=lambda v: v,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
__all__ = ["Upload", "UploadDefinition"]
|
|
@@ -12,7 +12,7 @@ from graphql import (
|
|
|
12
12
|
GraphQLString,
|
|
13
13
|
)
|
|
14
14
|
|
|
15
|
-
from strawberry.file_uploads.scalars import Upload
|
|
15
|
+
from strawberry.file_uploads.scalars import Upload, UploadDefinition
|
|
16
16
|
from strawberry.scalars import ID, JSON, Base16, Base32, Base64
|
|
17
17
|
from strawberry.schema.types import base_scalars
|
|
18
18
|
from strawberry.types.scalar import ScalarDefinition, scalar
|
|
@@ -54,12 +54,7 @@ DEFAULT_SCALAR_REGISTRY: dict[object, ScalarDefinition] = {
|
|
|
54
54
|
bool: _make_scalar_definition(GraphQLBoolean),
|
|
55
55
|
ID: _make_scalar_definition(GraphQLID),
|
|
56
56
|
UUID: base_scalars.UUIDDefinition,
|
|
57
|
-
Upload:
|
|
58
|
-
name="Upload",
|
|
59
|
-
description="Represents a file upload.",
|
|
60
|
-
serialize=lambda v: v,
|
|
61
|
-
parse_value=lambda v: v,
|
|
62
|
-
),
|
|
57
|
+
Upload: UploadDefinition,
|
|
63
58
|
datetime.date: base_scalars.DateDefinition,
|
|
64
59
|
datetime.datetime: base_scalars.DateTimeDefinition,
|
|
65
60
|
datetime.time: base_scalars.TimeDefinition,
|
strawberry/types/field.py
CHANGED
|
@@ -258,11 +258,10 @@ class StrawberryField(dataclasses.Field):
|
|
|
258
258
|
|
|
259
259
|
@property
|
|
260
260
|
def is_graphql_generic(self) -> bool:
|
|
261
|
-
|
|
262
|
-
self.base_resolver.is_graphql_generic
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
)
|
|
261
|
+
if self.base_resolver:
|
|
262
|
+
return self.base_resolver.is_graphql_generic or _is_generic(self.type)
|
|
263
|
+
|
|
264
|
+
return _is_generic(self.type)
|
|
266
265
|
|
|
267
266
|
def _python_name(self) -> str | None:
|
|
268
267
|
if self.name:
|
|
@@ -135,8 +135,8 @@ strawberry/federation/union.py,sha256=JXkeDe1rwd6085YN7n-cjDHbo9Wdw6MppECku_f8V5
|
|
|
135
135
|
strawberry/federation/versions.py,sha256=MrGG3GTbUVIRp0WbYjCZAfIwkhFGlDjcYoeYkT3aijA,807
|
|
136
136
|
strawberry/field_extensions/__init__.py,sha256=0z6RG9jEO7jpAuyEaQhRI5A_30rdcvsBM0qMhLs8y2s,96
|
|
137
137
|
strawberry/field_extensions/input_mutation.py,sha256=FLjv5kqcSga55hoeLuKICyUK28DK2-roUMQWBQNiuS0,2623
|
|
138
|
-
strawberry/file_uploads/__init__.py,sha256=
|
|
139
|
-
strawberry/file_uploads/scalars.py,sha256=
|
|
138
|
+
strawberry/file_uploads/__init__.py,sha256=HLqjN4o2k-FJ-204OC2-OLRjXFoCNCM1JROble2wOU0,88
|
|
139
|
+
strawberry/file_uploads/scalars.py,sha256=H18hsombUMpx7gjTWzAp1kdVOVGEgNA_0paKxqwLk6o,298
|
|
140
140
|
strawberry/file_uploads/utils.py,sha256=-c6TbqUI-Dkb96hWCrZabh6TL2OabBuQNkCarOqgDm4,1181
|
|
141
141
|
strawberry/flask/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
142
142
|
strawberry/flask/views.py,sha256=cEN5-4BOi98_rn7-pR7TkSUfjCasZBV1iX7vjX_RfnQ,4612
|
|
@@ -183,7 +183,7 @@ strawberry/schema/schema_converter.py,sha256=RwSQaP8BeQVG9EXFrjawcemweaobrGrU6L7
|
|
|
183
183
|
strawberry/schema/types/__init__.py,sha256=oHO3COWhL3L1KLYCJNY1XFf5xt2GGtHiMC-UaYbFfnA,68
|
|
184
184
|
strawberry/schema/types/base_scalars.py,sha256=ajMeN4W45AALhCnJO8MIisRb9slDZRyIl1S61LvHfSQ,2678
|
|
185
185
|
strawberry/schema/types/concrete_type.py,sha256=Z0oPu52dlAMcGYw4_ZCv3OSyoSLw2DxyoegK-GH8s0U,801
|
|
186
|
-
strawberry/schema/types/scalar.py,sha256=
|
|
186
|
+
strawberry/schema/types/scalar.py,sha256=1MKFyE7_S0Mb5TafYLhRituidGrPGrmVgR548WRz3Wk,3884
|
|
187
187
|
strawberry/schema/validation_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
188
188
|
strawberry/schema/validation_rules/maybe_null.py,sha256=RrIq1yV5_2YxIYN7jx8AaY6O_pqxKtylbM1IygFz5z4,5624
|
|
189
189
|
strawberry/schema/validation_rules/one_of.py,sha256=fPuYzCyLT7p9y7dHF_sWTImArTQaEhyF664lZijB1Gw,2629
|
|
@@ -214,7 +214,7 @@ strawberry/types/base.py,sha256=Hubo7u6OsU1v1v-w-vBCwlNVTqHaNn4zPOJuX93WR5U,1569
|
|
|
214
214
|
strawberry/types/cast.py,sha256=fx86MkLW77GIximBAwUk5vZxSGwDqUA6XicXvz8EXwQ,916
|
|
215
215
|
strawberry/types/enum.py,sha256=sL7SMLx7W9h0-zxtKews6drfYtLUVZ1VorXuXp83mj4,8103
|
|
216
216
|
strawberry/types/execution.py,sha256=z84AekAD_V_F4vGGHMPMGlAT0Htiw5JhEVvw1F9sGYQ,4019
|
|
217
|
-
strawberry/types/field.py,sha256
|
|
217
|
+
strawberry/types/field.py,sha256=4G3EteHLWI5E614_AV4Vk2hmRacy4TttuYSPh9MpU9k,20424
|
|
218
218
|
strawberry/types/fields/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
219
219
|
strawberry/types/fields/resolver.py,sha256=sWG4nO8XpsvELna0uLU-rwKzUGiMgwHPzg8N7xRXqe4,16239
|
|
220
220
|
strawberry/types/graphql.py,sha256=gXKzawwKiow7hvoJhq5ApNJOMUCnKmvTiHaKY5CK1Lw,867
|
|
@@ -240,8 +240,8 @@ strawberry/utils/logging.py,sha256=Dnivjd0ZhK_lAvjvuyCDkEWDhuURBoK9d3Kt_mIqbRg,7
|
|
|
240
240
|
strawberry/utils/operation.py,sha256=Qs3ttbuC415xEVqmJ6YsWQpJNUo8CZJq9AoMB-yV65w,1215
|
|
241
241
|
strawberry/utils/str_converters.py,sha256=-eH1Cl16IO_wrBlsGM-km4IY0IKsjhjnSNGRGOwQjVM,897
|
|
242
242
|
strawberry/utils/typing.py,sha256=eE9NeMfASeXRstbjLnQFfOPymcSX8xwg3FGw_HCp95E,11828
|
|
243
|
-
strawberry_graphql-0.289.
|
|
244
|
-
strawberry_graphql-0.289.
|
|
245
|
-
strawberry_graphql-0.289.
|
|
246
|
-
strawberry_graphql-0.289.
|
|
247
|
-
strawberry_graphql-0.289.
|
|
243
|
+
strawberry_graphql-0.289.8.dist-info/METADATA,sha256=ChUTmdnOxdsdIjJtD6zO1zmdM0tcKhtQ8qh59X1WGNA,7394
|
|
244
|
+
strawberry_graphql-0.289.8.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
|
|
245
|
+
strawberry_graphql-0.289.8.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
|
|
246
|
+
strawberry_graphql-0.289.8.dist-info/licenses/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
|
|
247
|
+
strawberry_graphql-0.289.8.dist-info/RECORD,,
|
|
File without changes
|
{strawberry_graphql-0.289.6.dist-info → strawberry_graphql-0.289.8.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{strawberry_graphql-0.289.6.dist-info → strawberry_graphql-0.289.8.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|