strawberry-graphql 0.186.1__py3-none-any.whl → 0.186.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.
- strawberry/field.py +6 -3
- strawberry/types/types.py +2 -2
- {strawberry_graphql-0.186.1.dist-info → strawberry_graphql-0.186.2.dist-info}/METADATA +1 -1
- {strawberry_graphql-0.186.1.dist-info → strawberry_graphql-0.186.2.dist-info}/RECORD +7 -7
- {strawberry_graphql-0.186.1.dist-info → strawberry_graphql-0.186.2.dist-info}/LICENSE +0 -0
- {strawberry_graphql-0.186.1.dist-info → strawberry_graphql-0.186.2.dist-info}/WHEEL +0 -0
- {strawberry_graphql-0.186.1.dist-info → strawberry_graphql-0.186.2.dist-info}/entry_points.txt +0 -0
strawberry/field.py
CHANGED
@@ -320,7 +320,7 @@ class StrawberryField(dataclasses.Field):
|
|
320
320
|
else None
|
321
321
|
)
|
322
322
|
|
323
|
-
|
323
|
+
new_field = type(self)(
|
324
324
|
python_name=self.python_name,
|
325
325
|
graphql_name=self.graphql_name,
|
326
326
|
# TODO: do we need to wrap this in `StrawberryAnnotation`?
|
@@ -330,13 +330,16 @@ class StrawberryField(dataclasses.Field):
|
|
330
330
|
is_subscription=self.is_subscription,
|
331
331
|
description=self.description,
|
332
332
|
base_resolver=new_resolver,
|
333
|
-
permission_classes=self.permission_classes,
|
333
|
+
permission_classes=self.permission_classes and self.permission_classes[:],
|
334
334
|
default=self.default_value,
|
335
335
|
# ignored because of https://github.com/python/mypy/issues/6910
|
336
336
|
default_factory=self.default_factory,
|
337
337
|
deprecation_reason=self.deprecation_reason,
|
338
|
-
directives=self.directives,
|
338
|
+
directives=self.directives and self.directives[:],
|
339
|
+
extensions=self.extensions and self.extensions[:],
|
339
340
|
)
|
341
|
+
new_field._arguments = self._arguments and self._arguments[:]
|
342
|
+
return new_field
|
340
343
|
|
341
344
|
@property
|
342
345
|
def _has_async_permission_classes(self) -> bool:
|
strawberry/types/types.py
CHANGED
@@ -79,8 +79,8 @@ class TypeDefinition(StrawberryType):
|
|
79
79
|
is_input=self.is_input,
|
80
80
|
origin=self.origin,
|
81
81
|
is_interface=self.is_interface,
|
82
|
-
directives=self.directives,
|
83
|
-
interfaces=self.interfaces,
|
82
|
+
directives=self.directives and self.directives[:],
|
83
|
+
interfaces=self.interfaces and self.interfaces[:],
|
84
84
|
description=self.description,
|
85
85
|
extend=self.extend,
|
86
86
|
is_type_of=self.is_type_of,
|
@@ -128,7 +128,7 @@ strawberry/federation/schema_directive.py,sha256=TpqoVeN3-iE-acndIRAVyU4LIXh6FTH
|
|
128
128
|
strawberry/federation/schema_directives.py,sha256=TKIAqmMEyq0SwNxiNr0YLiqAUjS5kKxZyHW_NPS5nkM,4780
|
129
129
|
strawberry/federation/types.py,sha256=mM70g1aLgjplOc3SdtuJjy7NAKFLv35Z4BDC4s_j5us,301
|
130
130
|
strawberry/federation/union.py,sha256=PN8TtF5h5BvT1-QMDTNdc-y3Wk_HSwyMfGHNLPfIirw,980
|
131
|
-
strawberry/field.py,sha256=
|
131
|
+
strawberry/field.py,sha256=_tXWPBBmNm5MIcmO-Bm_dKjZKKssAVE5KXPYqpu__ZE,17118
|
132
132
|
strawberry/field_extensions/__init__.py,sha256=0z6RG9jEO7jpAuyEaQhRI5A_30rdcvsBM0qMhLs8y2s,96
|
133
133
|
strawberry/field_extensions/input_mutation.py,sha256=U9TlPDO2kk8LP5RsfKolD6j-YUmTWYWZrj7mI7mDfjs,2683
|
134
134
|
strawberry/file_uploads/__init__.py,sha256=v2-6FGBqnTnMPSUTFOiXpIutDMl-ga0PFtw5tKlcagk,50
|
@@ -207,7 +207,7 @@ strawberry/types/graphql.py,sha256=3SWZEsa0Zy1eVW6vy75BnB7t9_lJVi6TBV3_1j3RNBs,6
|
|
207
207
|
strawberry/types/info.py,sha256=-ZppOgyEWdUYtkRpUVVn9SJGVsMNtR6gaChk8V3DmIg,2754
|
208
208
|
strawberry/types/nodes.py,sha256=2ZVa1HOFgHZ96QTfz3QEr1fufi6Sz9hAzcZxsN7KtGE,5026
|
209
209
|
strawberry/types/type_resolver.py,sha256=bktpUGS8VOF01tx3IwSbmjgXmKR3tREc8qhdIDGaHAA,7306
|
210
|
-
strawberry/types/types.py,sha256=
|
210
|
+
strawberry/types/types.py,sha256=Jz9A86OD35S603g5dDybuyoWrG8zDUV2cR8NLwOgPsQ,5800
|
211
211
|
strawberry/union.py,sha256=wveDM8gj1wV2eMAQS8PXLpPsfht-Tg572e4M2AtIozQ,9360
|
212
212
|
strawberry/unset.py,sha256=_180_Wxvw-umn-URMb3CmO-WegBfZHjVZW0L0RXrQrI,1097
|
213
213
|
strawberry/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -224,8 +224,8 @@ strawberry/utils/logging.py,sha256=pz1pRJtx5xX2ejGKNN-fG8zPA4SJjnq1HK9xaQpjd4s,1
|
|
224
224
|
strawberry/utils/operation.py,sha256=Um-tBCPl3_bVFN2Ph7o1mnrxfxBes4HFCj6T0x4kZxE,1135
|
225
225
|
strawberry/utils/str_converters.py,sha256=VdOnzaxhwJnmQl1Lon0VOjl72uXhM8tLfGxoGwn3arI,657
|
226
226
|
strawberry/utils/typing.py,sha256=WE64RFkYDdUbhZjWpZeLOwfDALOCPO1PKU3zXZuOeqk,12423
|
227
|
-
strawberry_graphql-0.186.
|
228
|
-
strawberry_graphql-0.186.
|
229
|
-
strawberry_graphql-0.186.
|
230
|
-
strawberry_graphql-0.186.
|
231
|
-
strawberry_graphql-0.186.
|
227
|
+
strawberry_graphql-0.186.2.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
|
228
|
+
strawberry_graphql-0.186.2.dist-info/METADATA,sha256=GD6hmkk-5cs3cgwHAs5yShx7HTgjRlyZmdUE5_BeTuM,7634
|
229
|
+
strawberry_graphql-0.186.2.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
230
|
+
strawberry_graphql-0.186.2.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
|
231
|
+
strawberry_graphql-0.186.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{strawberry_graphql-0.186.1.dist-info → strawberry_graphql-0.186.2.dist-info}/entry_points.txt
RENAMED
File without changes
|