strawberry-graphql 0.289.5__py3-none-any.whl → 0.289.7__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/cli/commands/upgrade/_fake_progress.py +2 -1
- strawberry/experimental/pydantic/object_type.py +1 -0
- strawberry/types/field.py +4 -5
- strawberry/types/unset.py +4 -3
- {strawberry_graphql-0.289.5.dist-info → strawberry_graphql-0.289.7.dist-info}/METADATA +1 -1
- {strawberry_graphql-0.289.5.dist-info → strawberry_graphql-0.289.7.dist-info}/RECORD +9 -9
- {strawberry_graphql-0.289.5.dist-info → strawberry_graphql-0.289.7.dist-info}/WHEEL +0 -0
- {strawberry_graphql-0.289.5.dist-info → strawberry_graphql-0.289.7.dist-info}/entry_points.txt +0 -0
- {strawberry_graphql-0.289.5.dist-info → strawberry_graphql-0.289.7.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from typing import Any
|
|
2
|
+
from typing_extensions import Self
|
|
2
3
|
|
|
3
4
|
from rich.progress import TaskID
|
|
4
5
|
|
|
@@ -15,7 +16,7 @@ class FakeProgress:
|
|
|
15
16
|
def add_task(self, *args: Any, **kwargs: Any) -> TaskID:
|
|
16
17
|
return TaskID(0)
|
|
17
18
|
|
|
18
|
-
def __enter__(self) ->
|
|
19
|
+
def __enter__(self) -> Self:
|
|
19
20
|
return self
|
|
20
21
|
|
|
21
22
|
def __exit__(self, *args: object, **kwargs: Any) -> None:
|
|
@@ -98,6 +98,7 @@ def _build_dataclass_creation_fields(
|
|
|
98
98
|
existing_field.permission_classes if existing_field else []
|
|
99
99
|
),
|
|
100
100
|
directives=existing_field.directives if existing_field else (),
|
|
101
|
+
extensions=existing_field.extensions if existing_field else [],
|
|
101
102
|
metadata=existing_field.metadata if existing_field else {},
|
|
102
103
|
)
|
|
103
104
|
|
strawberry/types/field.py
CHANGED
|
@@ -258,11 +258,10 @@ class StrawberryField(dataclasses.Field):
|
|
|
258
258
|
|
|
259
259
|
@property
|
|
260
260
|
def is_graphql_generic(self) -> bool:
|
|
261
|
-
|
|
262
|
-
self.base_resolver.is_graphql_generic
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
)
|
|
261
|
+
if self.base_resolver:
|
|
262
|
+
return self.base_resolver.is_graphql_generic or _is_generic(self.type)
|
|
263
|
+
|
|
264
|
+
return _is_generic(self.type)
|
|
266
265
|
|
|
267
266
|
def _python_name(self) -> str | None:
|
|
268
267
|
if self.name:
|
strawberry/types/unset.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import warnings
|
|
2
|
-
from typing import Any
|
|
2
|
+
from typing import Any
|
|
3
|
+
from typing_extensions import Self
|
|
3
4
|
|
|
4
5
|
DEPRECATED_NAMES: dict[str, str] = {
|
|
5
6
|
"is_unset": "`is_unset` is deprecated use `value is UNSET` instead",
|
|
@@ -7,9 +8,9 @@ DEPRECATED_NAMES: dict[str, str] = {
|
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
class UnsetType:
|
|
10
|
-
__instance:
|
|
11
|
+
__instance: Self | None = None
|
|
11
12
|
|
|
12
|
-
def __new__(cls: type[
|
|
13
|
+
def __new__(cls: type[Self]) -> Self:
|
|
13
14
|
if cls.__instance is None:
|
|
14
15
|
ret = super().__new__(cls)
|
|
15
16
|
cls.__instance = ret
|
|
@@ -27,7 +27,7 @@ strawberry/cli/commands/locate_definition.py,sha256=aJJ_KeAnV-c8zTdWIhzcHUilUmCp
|
|
|
27
27
|
strawberry/cli/commands/schema_codegen.py,sha256=bhSbqfs0_QkzqlLe8xbO0PG4wmCTjAUPPVxgma-mbn8,718
|
|
28
28
|
strawberry/cli/commands/server.py,sha256=nbIz-0l_EqQkvpSlg5h9eGFtfW3eSjxUt9bLgRelylo,1066
|
|
29
29
|
strawberry/cli/commands/upgrade/__init__.py,sha256=h_2ojCsJWYGLsW6F81io5iYKcm88TxVKfGBQ5D4pxVI,2932
|
|
30
|
-
strawberry/cli/commands/upgrade/_fake_progress.py,sha256=
|
|
30
|
+
strawberry/cli/commands/upgrade/_fake_progress.py,sha256=mibDcjn5kje1w0CjrFd_gga4JhV1Ia-R5jRk0QoUFPY,509
|
|
31
31
|
strawberry/cli/commands/upgrade/_run_codemod.py,sha256=rCtDDFAUGL6wjrmR_hPK-7NuFlZ5UGZmtzaV7efr5JU,2177
|
|
32
32
|
strawberry/cli/constants.py,sha256=MZ8JTo6YyS8t_mRtJJuNCQPiaKzyqjDbncizDb2pG-c,63
|
|
33
33
|
strawberry/cli/dev_server.py,sha256=u6PAAl6Un0SHdsHDWDnQ85VPCY9g5HTNi2VKOFgJl_A,864
|
|
@@ -86,7 +86,7 @@ strawberry/experimental/pydantic/conversion_types.py,sha256=JQYIBOynAYLhu1zaJmfk
|
|
|
86
86
|
strawberry/experimental/pydantic/error_type.py,sha256=GsQS9NdfsZ64N7O25XDHuLwsIhadlh7YytyHmclDzsI,4558
|
|
87
87
|
strawberry/experimental/pydantic/exceptions.py,sha256=pDMPL94ojuSGHxk8H8mI2pfWReG8BhqZ5T2eSxfOi9w,1486
|
|
88
88
|
strawberry/experimental/pydantic/fields.py,sha256=KFWJYUVe7HSTioDyMcRNGSARFc76nAr5I_P0kCQyLoc,2137
|
|
89
|
-
strawberry/experimental/pydantic/object_type.py,sha256=
|
|
89
|
+
strawberry/experimental/pydantic/object_type.py,sha256=QiJ_nucmJ9XXXduWT07tptrCgUwj6WnMQlQfORSVFWo,12710
|
|
90
90
|
strawberry/experimental/pydantic/utils.py,sha256=0-DJyX8pXz14XQbxf9sih6T8ipLAGlQ_0xDtuaOoN9U,4018
|
|
91
91
|
strawberry/ext/LICENSE,sha256=_oY0TZg0b_sW0--0T44aMTpy2e2zF1Kiyn8E1qDiivo,1249
|
|
92
92
|
strawberry/ext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -214,7 +214,7 @@ strawberry/types/base.py,sha256=Hubo7u6OsU1v1v-w-vBCwlNVTqHaNn4zPOJuX93WR5U,1569
|
|
|
214
214
|
strawberry/types/cast.py,sha256=fx86MkLW77GIximBAwUk5vZxSGwDqUA6XicXvz8EXwQ,916
|
|
215
215
|
strawberry/types/enum.py,sha256=sL7SMLx7W9h0-zxtKews6drfYtLUVZ1VorXuXp83mj4,8103
|
|
216
216
|
strawberry/types/execution.py,sha256=z84AekAD_V_F4vGGHMPMGlAT0Htiw5JhEVvw1F9sGYQ,4019
|
|
217
|
-
strawberry/types/field.py,sha256
|
|
217
|
+
strawberry/types/field.py,sha256=4G3EteHLWI5E614_AV4Vk2hmRacy4TttuYSPh9MpU9k,20424
|
|
218
218
|
strawberry/types/fields/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
219
219
|
strawberry/types/fields/resolver.py,sha256=sWG4nO8XpsvELna0uLU-rwKzUGiMgwHPzg8N7xRXqe4,16239
|
|
220
220
|
strawberry/types/graphql.py,sha256=gXKzawwKiow7hvoJhq5ApNJOMUCnKmvTiHaKY5CK1Lw,867
|
|
@@ -228,7 +228,7 @@ strawberry/types/private.py,sha256=DhJs50XVGtOXlxWZFkRpMxQ5_6oki0-x_WQsV1bGUxk,5
|
|
|
228
228
|
strawberry/types/scalar.py,sha256=OgWRFV5x-qTM4-FJC-sAKix-DhMtGRrJTxU7ry4VOlA,8651
|
|
229
229
|
strawberry/types/type_resolver.py,sha256=fH2ZOK4dAGgu8AMPi-JAXe_kEAbvvw2MCYXqbpx-kTc,6529
|
|
230
230
|
strawberry/types/union.py,sha256=u3BXW1NNmgnO6VSTpXWqwo_V47_P1p7WA6VRYqj8cSA,10517
|
|
231
|
-
strawberry/types/unset.py,sha256=
|
|
231
|
+
strawberry/types/unset.py,sha256=HbVRSQ7OcZbmdOglpF8egl-rCyddoFZ17ozqdePEbGY,1683
|
|
232
232
|
strawberry/utils/__init__.py,sha256=wuuNvKjcMfE0l4lqrlC-cc0_SR4hV19gNBJ3Mcn7l3A,141
|
|
233
233
|
strawberry/utils/aio.py,sha256=Nc-h2siURQKTUER3olm1ltOn2wd7ZehQ1FDICYOeboI,2201
|
|
234
234
|
strawberry/utils/await_maybe.py,sha256=9TZrO45BXHh7FT4THN6JfM0vtQ5kR0NqL2NfjBTB3OI,463
|
|
@@ -240,8 +240,8 @@ strawberry/utils/logging.py,sha256=Dnivjd0ZhK_lAvjvuyCDkEWDhuURBoK9d3Kt_mIqbRg,7
|
|
|
240
240
|
strawberry/utils/operation.py,sha256=Qs3ttbuC415xEVqmJ6YsWQpJNUo8CZJq9AoMB-yV65w,1215
|
|
241
241
|
strawberry/utils/str_converters.py,sha256=-eH1Cl16IO_wrBlsGM-km4IY0IKsjhjnSNGRGOwQjVM,897
|
|
242
242
|
strawberry/utils/typing.py,sha256=eE9NeMfASeXRstbjLnQFfOPymcSX8xwg3FGw_HCp95E,11828
|
|
243
|
-
strawberry_graphql-0.289.
|
|
244
|
-
strawberry_graphql-0.289.
|
|
245
|
-
strawberry_graphql-0.289.
|
|
246
|
-
strawberry_graphql-0.289.
|
|
247
|
-
strawberry_graphql-0.289.
|
|
243
|
+
strawberry_graphql-0.289.7.dist-info/METADATA,sha256=-H2VomAs_ikj6nJorNScsQ1jMl_Mm4IgVGTEDr-Jw3w,7394
|
|
244
|
+
strawberry_graphql-0.289.7.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
|
|
245
|
+
strawberry_graphql-0.289.7.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
|
|
246
|
+
strawberry_graphql-0.289.7.dist-info/licenses/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
|
|
247
|
+
strawberry_graphql-0.289.7.dist-info/RECORD,,
|
|
File without changes
|
{strawberry_graphql-0.289.5.dist-info → strawberry_graphql-0.289.7.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{strawberry_graphql-0.289.5.dist-info → strawberry_graphql-0.289.7.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|