strawberry-graphql 0.283.2__py3-none-any.whl → 0.283.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/schema/schema_converter.py +8 -0
- {strawberry_graphql-0.283.2.dist-info → strawberry_graphql-0.283.3.dist-info}/METADATA +1 -1
- {strawberry_graphql-0.283.2.dist-info → strawberry_graphql-0.283.3.dist-info}/RECORD +6 -6
- {strawberry_graphql-0.283.2.dist-info → strawberry_graphql-0.283.3.dist-info}/WHEEL +0 -0
- {strawberry_graphql-0.283.2.dist-info → strawberry_graphql-0.283.3.dist-info}/entry_points.txt +0 -0
- {strawberry_graphql-0.283.2.dist-info → strawberry_graphql-0.283.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -2,9 +2,11 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
import dataclasses
|
|
4
4
|
import sys
|
|
5
|
+
import typing
|
|
5
6
|
from functools import partial, reduce
|
|
6
7
|
from typing import (
|
|
7
8
|
TYPE_CHECKING,
|
|
9
|
+
Annotated,
|
|
8
10
|
Any,
|
|
9
11
|
Callable,
|
|
10
12
|
Generic,
|
|
@@ -869,6 +871,12 @@ class GraphQLCoreConverter:
|
|
|
869
871
|
if compat.is_graphql_generic(type_):
|
|
870
872
|
raise MissingTypesForGenericError(type_)
|
|
871
873
|
|
|
874
|
+
# to handle lazy unions
|
|
875
|
+
if typing.get_origin(type_) is Annotated:
|
|
876
|
+
args = typing.get_args(type_)
|
|
877
|
+
if len(args) >= 2 and isinstance(args[1], StrawberryUnion):
|
|
878
|
+
type_ = args[1]
|
|
879
|
+
|
|
872
880
|
if isinstance(type_, EnumDefinition): # TODO: Replace with StrawberryEnum
|
|
873
881
|
return self.from_enum(type_)
|
|
874
882
|
if compat.is_input_type(type_): # TODO: Replace with StrawberryInputObject
|
|
@@ -175,7 +175,7 @@ strawberry/schema/config.py,sha256=bkEMn0EkBRg2Tl6ZZH5hpOGBNiAw9QcOclt5dI_Yd1g,1
|
|
|
175
175
|
strawberry/schema/exceptions.py,sha256=8gsMxxFDynMvRkUDuVL9Wwxk_zsmo6QoJ2l4NPxd64M,1137
|
|
176
176
|
strawberry/schema/name_converter.py,sha256=JG5JKLr9wp8BMJIvG3_bVkwFdoLGbknNR1Bt75urXN0,6950
|
|
177
177
|
strawberry/schema/schema.py,sha256=Tg-_hC2ri0ibM-gncOEsLkTmt5T3HM6UsetfYPa1t4M,39548
|
|
178
|
-
strawberry/schema/schema_converter.py,sha256=
|
|
178
|
+
strawberry/schema/schema_converter.py,sha256=ssAPE39B70R5YQR69bme09OZOQsniF9WuPigq34IBAs,40824
|
|
179
179
|
strawberry/schema/types/__init__.py,sha256=oHO3COWhL3L1KLYCJNY1XFf5xt2GGtHiMC-UaYbFfnA,68
|
|
180
180
|
strawberry/schema/types/base_scalars.py,sha256=JRUq0WjEkR9dFewstZnqnZKp0uOEipo4UXNF5dzRf4M,1971
|
|
181
181
|
strawberry/schema/types/concrete_type.py,sha256=axIyFZgdwNv-XYkiqX67464wuFX6Vp0jYATwnBZSUvM,750
|
|
@@ -237,8 +237,8 @@ strawberry/utils/logging.py,sha256=U1cseHGquN09YFhFmRkiphfASKCyK0HUZREImPgVb0c,7
|
|
|
237
237
|
strawberry/utils/operation.py,sha256=ZgVOw3K2jQuLjNOYUHauF7itJD0QDNoPw9PBi0IYf6k,1234
|
|
238
238
|
strawberry/utils/str_converters.py,sha256=-eH1Cl16IO_wrBlsGM-km4IY0IKsjhjnSNGRGOwQjVM,897
|
|
239
239
|
strawberry/utils/typing.py,sha256=hfnwL-M0D9H-_-lpo_xG8CjLeSGx8yas0fZsmf5Rq9U,13990
|
|
240
|
-
strawberry_graphql-0.283.
|
|
241
|
-
strawberry_graphql-0.283.
|
|
242
|
-
strawberry_graphql-0.283.
|
|
243
|
-
strawberry_graphql-0.283.
|
|
244
|
-
strawberry_graphql-0.283.
|
|
240
|
+
strawberry_graphql-0.283.3.dist-info/METADATA,sha256=wwntsnhAi3-swK7by7gN1NBMzswVTjsfWxCQFSRXaQc,7652
|
|
241
|
+
strawberry_graphql-0.283.3.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
242
|
+
strawberry_graphql-0.283.3.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
|
|
243
|
+
strawberry_graphql-0.283.3.dist-info/licenses/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
|
|
244
|
+
strawberry_graphql-0.283.3.dist-info/RECORD,,
|
|
File without changes
|
{strawberry_graphql-0.283.2.dist-info → strawberry_graphql-0.283.3.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{strawberry_graphql-0.283.2.dist-info → strawberry_graphql-0.283.3.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|