strawberry-graphql 0.209.1__py3-none-any.whl → 0.209.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/experimental/pydantic/fields.py +7 -0
- {strawberry_graphql-0.209.1.dist-info → strawberry_graphql-0.209.2.dist-info}/METADATA +1 -1
- {strawberry_graphql-0.209.1.dist-info → strawberry_graphql-0.209.2.dist-info}/RECORD +6 -6
- {strawberry_graphql-0.209.1.dist-info → strawberry_graphql-0.209.2.dist-info}/LICENSE +0 -0
- {strawberry_graphql-0.209.1.dist-info → strawberry_graphql-0.209.2.dist-info}/WHEEL +0 -0
- {strawberry_graphql-0.209.1.dist-info → strawberry_graphql-0.209.2.dist-info}/entry_points.txt +0 -0
@@ -1,6 +1,7 @@
|
|
1
1
|
import builtins
|
2
2
|
from decimal import Decimal
|
3
3
|
from typing import Any, Dict, List, Optional, Type, Union
|
4
|
+
from typing_extensions import Annotated
|
4
5
|
from uuid import UUID
|
5
6
|
|
6
7
|
import pydantic
|
@@ -42,6 +43,7 @@ except ImportError:
|
|
42
43
|
else:
|
43
44
|
raise
|
44
45
|
|
46
|
+
|
45
47
|
ATTR_TO_TYPE_MAP = {
|
46
48
|
"NoneStr": Optional[str],
|
47
49
|
"NoneBytes": Optional[bytes],
|
@@ -178,6 +180,11 @@ def replace_types_recursively(type_: Any, is_input: bool) -> Any:
|
|
178
180
|
return TypingGenericAlias(origin, converted)
|
179
181
|
if isinstance(replaced_type, TypingUnionType):
|
180
182
|
return Union[converted]
|
183
|
+
|
184
|
+
# TODO: investigate if we could move the check for annotated to the top
|
185
|
+
if origin is Annotated and converted:
|
186
|
+
converted = (converted[0],)
|
187
|
+
|
181
188
|
replaced_type = replaced_type.copy_with(converted)
|
182
189
|
|
183
190
|
if isinstance(replaced_type, StrawberryObjectDefinition):
|
@@ -87,7 +87,7 @@ strawberry/experimental/pydantic/conversion.py,sha256=Oc5eOGCMEW5QHIiSzatZGx54uY
|
|
87
87
|
strawberry/experimental/pydantic/conversion_types.py,sha256=psVRmKE5fVcBAUT0Z2vCOLAXHddat2A0jJ-0SB1XDn8,963
|
88
88
|
strawberry/experimental/pydantic/error_type.py,sha256=Fy7m2E03a86XsF76UoAUeroiJLnvVxBwKKEt6RcMfKs,4311
|
89
89
|
strawberry/experimental/pydantic/exceptions.py,sha256=GJt22DTolA24A0ZHcHsy-fcRkBnavgUZYOo0MBIVcjs,1427
|
90
|
-
strawberry/experimental/pydantic/fields.py,sha256=
|
90
|
+
strawberry/experimental/pydantic/fields.py,sha256=m7LJEQ39wko4NRIjYPxhUbwNyZcubrbZmyBumG34CJM,5356
|
91
91
|
strawberry/experimental/pydantic/object_type.py,sha256=kb1gwHw7vQCshk84a7DMRBp_9zDntrAK3bbI58vjqf0,12160
|
92
92
|
strawberry/experimental/pydantic/utils.py,sha256=4vFNTyFLI6o9akUBf2ZNvWv-FFvQDm0F-i2_KagmQcE,3864
|
93
93
|
strawberry/ext/LICENSE,sha256=_oY0TZg0b_sW0--0T44aMTpy2e2zF1Kiyn8E1qDiivo,1249
|
@@ -234,8 +234,8 @@ strawberry/utils/logging.py,sha256=YGiPxfD5vC1UilPoKDP5vTHzQoF6F0lcOUGU3BWLBBo,1
|
|
234
234
|
strawberry/utils/operation.py,sha256=Um-tBCPl3_bVFN2Ph7o1mnrxfxBes4HFCj6T0x4kZxE,1135
|
235
235
|
strawberry/utils/str_converters.py,sha256=avIgPVLg98vZH9mA2lhzVdyyjqzLsK2NdBw9mJQ02Xk,813
|
236
236
|
strawberry/utils/typing.py,sha256=OvJkJHNgS2uP5RMkj033_64B34xGlbCh0udXgsM9Ihg,13481
|
237
|
-
strawberry_graphql-0.209.
|
238
|
-
strawberry_graphql-0.209.
|
239
|
-
strawberry_graphql-0.209.
|
240
|
-
strawberry_graphql-0.209.
|
241
|
-
strawberry_graphql-0.209.
|
237
|
+
strawberry_graphql-0.209.2.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
|
238
|
+
strawberry_graphql-0.209.2.dist-info/METADATA,sha256=G07zx2vv0i8ELrb3igU72FINuGTjluXoLdpSjKki8Uk,7517
|
239
|
+
strawberry_graphql-0.209.2.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
240
|
+
strawberry_graphql-0.209.2.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
|
241
|
+
strawberry_graphql-0.209.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{strawberry_graphql-0.209.1.dist-info → strawberry_graphql-0.209.2.dist-info}/entry_points.txt
RENAMED
File without changes
|