strawberry-graphql 0.224.0.dev1711748192__py3-none-any.whl → 0.224.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/experimental/pydantic/_compat.py +18 -9
- strawberry/extensions/tracing/apollo.py +3 -3
- {strawberry_graphql-0.224.0.dev1711748192.dist-info → strawberry_graphql-0.224.1.dist-info}/METADATA +1 -1
- {strawberry_graphql-0.224.0.dev1711748192.dist-info → strawberry_graphql-0.224.1.dist-info}/RECORD +7 -7
- {strawberry_graphql-0.224.0.dev1711748192.dist-info → strawberry_graphql-0.224.1.dist-info}/LICENSE +0 -0
- {strawberry_graphql-0.224.0.dev1711748192.dist-info → strawberry_graphql-0.224.1.dist-info}/WHEEL +0 -0
- {strawberry_graphql-0.224.0.dev1711748192.dist-info → strawberry_graphql-0.224.1.dist-info}/entry_points.txt +0 -0
@@ -205,15 +205,24 @@ class PydanticV1Compat:
|
|
205
205
|
|
206
206
|
def get_basic_type(self, type_: Any) -> Type[Any]:
|
207
207
|
if IS_PYDANTIC_V1:
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
208
|
+
ConstrainedInt = pydantic.ConstrainedInt
|
209
|
+
ConstrainedFloat = pydantic.ConstrainedFloat
|
210
|
+
ConstrainedStr = pydantic.ConstrainedStr
|
211
|
+
ConstrainedList = pydantic.ConstrainedList
|
212
|
+
else:
|
213
|
+
ConstrainedInt = pydantic.v1.ConstrainedInt
|
214
|
+
ConstrainedFloat = pydantic.v1.ConstrainedFloat
|
215
|
+
ConstrainedStr = pydantic.v1.ConstrainedStr
|
216
|
+
ConstrainedList = pydantic.v1.ConstrainedList
|
217
|
+
|
218
|
+
if lenient_issubclass(type_, ConstrainedInt):
|
219
|
+
return int
|
220
|
+
if lenient_issubclass(type_, ConstrainedFloat):
|
221
|
+
return float
|
222
|
+
if lenient_issubclass(type_, ConstrainedStr):
|
223
|
+
return str
|
224
|
+
if lenient_issubclass(type_, ConstrainedList):
|
225
|
+
return List[self.get_basic_type(type_.item_type)] # type: ignore
|
217
226
|
|
218
227
|
if type_ in self.fields_map:
|
219
228
|
type_ = self.fields_map[type_]
|
@@ -2,7 +2,7 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
import dataclasses
|
4
4
|
import time
|
5
|
-
from datetime import datetime
|
5
|
+
from datetime import datetime, timezone
|
6
6
|
from inspect import isawaitable
|
7
7
|
from typing import TYPE_CHECKING, Any, Callable, Dict, Generator, List, Optional
|
8
8
|
|
@@ -86,10 +86,10 @@ class ApolloTracingExtension(SchemaExtension):
|
|
86
86
|
|
87
87
|
def on_operation(self) -> Generator[None, None, None]:
|
88
88
|
self.start_timestamp = self.now()
|
89
|
-
self.start_time = datetime.
|
89
|
+
self.start_time = datetime.now(timezone.utc)
|
90
90
|
yield
|
91
91
|
self.end_timestamp = self.now()
|
92
|
-
self.end_time = datetime.
|
92
|
+
self.end_time = datetime.now(timezone.utc)
|
93
93
|
|
94
94
|
def on_parse(self) -> Generator[None, None, None]:
|
95
95
|
self._start_parsing = self.now()
|
{strawberry_graphql-0.224.0.dev1711748192.dist-info → strawberry_graphql-0.224.1.dist-info}/RECORD
RENAMED
@@ -83,7 +83,7 @@ strawberry/exceptions/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
|
|
83
83
|
strawberry/exceptions/utils/source_finder.py,sha256=AcuevLgWwOSOR5zBDJbVyXMGRUxsTzrr07XUB0UqNiI,20044
|
84
84
|
strawberry/experimental/__init__.py,sha256=2HP5XtxL8ZKsPp4EDRAbMCqiP7p2V4Cca278JUGxnt0,102
|
85
85
|
strawberry/experimental/pydantic/__init__.py,sha256=jlsYH1j_9W4ieRpUKgt5zQPERDL7nc1ZBNQ3dAhJs8w,241
|
86
|
-
strawberry/experimental/pydantic/_compat.py,sha256=
|
86
|
+
strawberry/experimental/pydantic/_compat.py,sha256=sBWil9Ggf-OqfK35XB-0-rx9MS66QFVEqptPkF3sjC0,8139
|
87
87
|
strawberry/experimental/pydantic/conversion.py,sha256=_YMz4cYCwLUazkT2oCQ4B1gusksnXDHdFm1DldIrU7Q,4213
|
88
88
|
strawberry/experimental/pydantic/conversion_types.py,sha256=psVRmKE5fVcBAUT0Z2vCOLAXHddat2A0jJ-0SB1XDn8,963
|
89
89
|
strawberry/experimental/pydantic/error_type.py,sha256=s8v0weIVM-9c0e3zqySaaa3pGZan7RvKTGuTtXLGPmE,4366
|
@@ -112,7 +112,7 @@ strawberry/extensions/pyinstrument.py,sha256=hJZdF48eJ7QY-6rKalnUGNWK2ZrpFayUi1J
|
|
112
112
|
strawberry/extensions/query_depth_limiter.py,sha256=sl9g2Lv-0SS8uPwS1NDaIL-bB2KQl68z7xrhYO25tR4,9890
|
113
113
|
strawberry/extensions/runner.py,sha256=u_aPiHMjMRgdXGLzJMsxaACJ-K6jUrSrc4kQ7EAj9RI,2688
|
114
114
|
strawberry/extensions/tracing/__init__.py,sha256=16fGa81RLkjFi4wwKNfBWGA5AivVPXnY7sH7EvMXg5M,1388
|
115
|
-
strawberry/extensions/tracing/apollo.py,sha256=
|
115
|
+
strawberry/extensions/tracing/apollo.py,sha256=k95C5VgAYLCc71RygftUJnzIq3gYPJPcZ2-7jSDiPcI,5803
|
116
116
|
strawberry/extensions/tracing/datadog.py,sha256=SOV_1uApEP3H8WGnzIHTBJ685EAJu2gqCc8yCMqsi44,5287
|
117
117
|
strawberry/extensions/tracing/opentelemetry.py,sha256=W0WorzHGM6io5cekh6dRVlMnXo8aZODMoyXCQFL8wEI,7204
|
118
118
|
strawberry/extensions/tracing/sentry.py,sha256=XnZ_mTITPYwazk5dGUOa340dmWA_7uS4hVhpvEDKXEo,4939
|
@@ -241,8 +241,8 @@ strawberry/utils/logging.py,sha256=flS7hV0JiIOEdXcrIjda4WyIWix86cpHHFNJL8gl1y4,7
|
|
241
241
|
strawberry/utils/operation.py,sha256=Um-tBCPl3_bVFN2Ph7o1mnrxfxBes4HFCj6T0x4kZxE,1135
|
242
242
|
strawberry/utils/str_converters.py,sha256=avIgPVLg98vZH9mA2lhzVdyyjqzLsK2NdBw9mJQ02Xk,813
|
243
243
|
strawberry/utils/typing.py,sha256=Qxz1LwyVsNGV7LQW1dFsaUbsswj5LHBOdKLMom5eyEA,13491
|
244
|
-
strawberry_graphql-0.224.
|
245
|
-
strawberry_graphql-0.224.
|
246
|
-
strawberry_graphql-0.224.
|
247
|
-
strawberry_graphql-0.224.
|
248
|
-
strawberry_graphql-0.224.
|
244
|
+
strawberry_graphql-0.224.1.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
|
245
|
+
strawberry_graphql-0.224.1.dist-info/METADATA,sha256=8x-11vR1Vr3D9yG5l3l7_X2Sa4GzvpYXan2Od0XrwcM,7740
|
246
|
+
strawberry_graphql-0.224.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
247
|
+
strawberry_graphql-0.224.1.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
|
248
|
+
strawberry_graphql-0.224.1.dist-info/RECORD,,
|
{strawberry_graphql-0.224.0.dev1711748192.dist-info → strawberry_graphql-0.224.1.dist-info}/LICENSE
RENAMED
File without changes
|
{strawberry_graphql-0.224.0.dev1711748192.dist-info → strawberry_graphql-0.224.1.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|