strawberry-graphql 0.270.6__py3-none-any.whl → 0.271.1__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/schema/config.py +1 -0
- strawberry/schema/schema_converter.py +5 -2
- strawberry/types/base.py +4 -2
- {strawberry_graphql-0.270.6.dist-info → strawberry_graphql-0.271.1.dist-info}/METADATA +1 -1
- {strawberry_graphql-0.270.6.dist-info → strawberry_graphql-0.271.1.dist-info}/RECORD +8 -8
- {strawberry_graphql-0.270.6.dist-info → strawberry_graphql-0.271.1.dist-info}/LICENSE +0 -0
- {strawberry_graphql-0.270.6.dist-info → strawberry_graphql-0.271.1.dist-info}/WHEEL +0 -0
- {strawberry_graphql-0.270.6.dist-info → strawberry_graphql-0.271.1.dist-info}/entry_points.txt +0 -0
strawberry/schema/config.py
CHANGED
@@ -968,8 +968,11 @@ class GraphQLCoreConverter:
|
|
968
968
|
def validate_same_type_definition(
|
969
969
|
self, name: str, type_definition: StrawberryType, cached_type: ConcreteType
|
970
970
|
) -> None:
|
971
|
-
#
|
972
|
-
if
|
971
|
+
# Skip validation if _unsafe_disable_same_type_validation is True
|
972
|
+
if (
|
973
|
+
self.config._unsafe_disable_same_type_validation
|
974
|
+
or cached_type.definition == type_definition
|
975
|
+
):
|
973
976
|
return
|
974
977
|
|
975
978
|
# otherwise we need to check if we are dealing with different instances
|
strawberry/types/base.py
CHANGED
@@ -429,8 +429,10 @@ class StrawberryObjectDefinition(StrawberryType):
|
|
429
429
|
if hasattr(real_concrete_type, "_enum_definition"):
|
430
430
|
real_concrete_type = real_concrete_type._enum_definition
|
431
431
|
|
432
|
-
if
|
433
|
-
|
432
|
+
if (
|
433
|
+
isinstance(expected_concrete_type, type)
|
434
|
+
and isinstance(real_concrete_type, type)
|
435
|
+
and issubclass(real_concrete_type, expected_concrete_type)
|
434
436
|
):
|
435
437
|
return True
|
436
438
|
|
@@ -165,11 +165,11 @@ strawberry/scalars.py,sha256=CGkG8CIfurXiYhidmW3qwy6M5BF_Mhih3wAEcWx_iBU,2278
|
|
165
165
|
strawberry/schema/__init__.py,sha256=u1QCyDVQExUVDA20kyosKPz3TS5HMCN2NrXclhiFAL4,92
|
166
166
|
strawberry/schema/base.py,sha256=wqvEOQ_aVkfebk9SlG9zg1YXl3MlwxGZhxFRoIkAxu0,4053
|
167
167
|
strawberry/schema/compat.py,sha256=xNpOEDfi-MODpplMGaKuKeQIVcr-tcAaKaU3TlBc1Zs,1873
|
168
|
-
strawberry/schema/config.py,sha256=
|
168
|
+
strawberry/schema/config.py,sha256=6d2MPrAgq97-7aze555dRcB3yw-aeUexYMP3KVN22c0,1024
|
169
169
|
strawberry/schema/exceptions.py,sha256=xXq-2wXfeGualEJObXja6yVIKzFTh_iDXCIWttpIOSE,769
|
170
170
|
strawberry/schema/name_converter.py,sha256=xFOXEgqldFkxXRkIQvsJN1dPkWbEUaIrTYNOMYSEVwQ,6945
|
171
171
|
strawberry/schema/schema.py,sha256=pTs_dfhqsftecPblY_jCPU7my8RKB1QnleicCJL35WE,37287
|
172
|
-
strawberry/schema/schema_converter.py,sha256=
|
172
|
+
strawberry/schema/schema_converter.py,sha256=vxFghA8c4vPLx0XM07gjIbWqMWUnaognzmsuCWTSkTk,39112
|
173
173
|
strawberry/schema/types/__init__.py,sha256=oHO3COWhL3L1KLYCJNY1XFf5xt2GGtHiMC-UaYbFfnA,68
|
174
174
|
strawberry/schema/types/base_scalars.py,sha256=JRUq0WjEkR9dFewstZnqnZKp0uOEipo4UXNF5dzRf4M,1971
|
175
175
|
strawberry/schema/types/concrete_type.py,sha256=axIyFZgdwNv-XYkiqX67464wuFX6Vp0jYATwnBZSUvM,750
|
@@ -198,7 +198,7 @@ strawberry/tools/merge_types.py,sha256=hUMRRNM28FyPp70jRA3d4svv9WoEBjaNpihBt3DaY
|
|
198
198
|
strawberry/types/__init__.py,sha256=baWEdDkkmCcITOhkg2hNUOenrNV1OYdxGE5qgvIRwwU,351
|
199
199
|
strawberry/types/arguments.py,sha256=DVouyH70uvTcFP3PmRzo8QdMThoqXdigJbWE9Lgn5pU,9849
|
200
200
|
strawberry/types/auto.py,sha256=WZ2cQAI8nREUigBzpzFqIKGjJ_C2VqpAPNe8vPjTciM,3007
|
201
|
-
strawberry/types/base.py,sha256=
|
201
|
+
strawberry/types/base.py,sha256=Bfa-5Wen8qR7m6tlSMRRGlGE-chRGMHjQMopfNdbbrk,15197
|
202
202
|
strawberry/types/cast.py,sha256=fx86MkLW77GIximBAwUk5vZxSGwDqUA6XicXvz8EXwQ,916
|
203
203
|
strawberry/types/enum.py,sha256=IcCz0FLswJtDC_bU8aG1cjreawcqHywAzzVRBZUSAqs,6229
|
204
204
|
strawberry/types/execution.py,sha256=Ylc0lH0nyHyQW509mVqBh2sIN5qpf4cJtt8QhVmWGgI,3749
|
@@ -230,8 +230,8 @@ strawberry/utils/logging.py,sha256=U1cseHGquN09YFhFmRkiphfASKCyK0HUZREImPgVb0c,7
|
|
230
230
|
strawberry/utils/operation.py,sha256=s7ajvLg_q6v2mg47kEMQPjO_J-XluMKTCwo4d47mGvE,1195
|
231
231
|
strawberry/utils/str_converters.py,sha256=-eH1Cl16IO_wrBlsGM-km4IY0IKsjhjnSNGRGOwQjVM,897
|
232
232
|
strawberry/utils/typing.py,sha256=SDvX-Du-9HAV3-XXjqi7Q5f5qPDDFd_gASIITiwBQT4,14073
|
233
|
-
strawberry_graphql-0.
|
234
|
-
strawberry_graphql-0.
|
235
|
-
strawberry_graphql-0.
|
236
|
-
strawberry_graphql-0.
|
237
|
-
strawberry_graphql-0.
|
233
|
+
strawberry_graphql-0.271.1.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
|
234
|
+
strawberry_graphql-0.271.1.dist-info/METADATA,sha256=Dn6jseflDfaS2Sixkjia853q8LgYKt5P5WrkVGyaLqg,7757
|
235
|
+
strawberry_graphql-0.271.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
236
|
+
strawberry_graphql-0.271.1.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
|
237
|
+
strawberry_graphql-0.271.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{strawberry_graphql-0.270.6.dist-info → strawberry_graphql-0.271.1.dist-info}/entry_points.txt
RENAMED
File without changes
|