strawberry-graphql 0.289.5__py3-none-any.whl → 0.289.6__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.
@@ -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) -> "FakeProgress":
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/unset.py CHANGED
@@ -1,5 +1,6 @@
1
1
  import warnings
2
- from typing import Any, Optional
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: Optional["UnsetType"] = None
11
+ __instance: Self | None = None
11
12
 
12
- def __new__(cls: type["UnsetType"]) -> "UnsetType":
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: strawberry-graphql
3
- Version: 0.289.5
3
+ Version: 0.289.6
4
4
  Summary: A library for creating GraphQL APIs
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -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=fefLgJwTXe4kG9RntdEJdzkPPRBK_pZqnmMH-pxD85Y,484
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=lqT_ex3XGTph9JILg5Em4Vn5NAwdxMQZgEQn2ArAvu8,12634
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
@@ -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=7DVK-WWxVLo41agvavTvIbphE42BmY8UpGolXfasIvw,1682
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.5.dist-info/METADATA,sha256=xxAghPw6aK0I3sFAcrz_taj0aGZ4lwFlj-DZaL2cuuA,7394
244
- strawberry_graphql-0.289.5.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
245
- strawberry_graphql-0.289.5.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
246
- strawberry_graphql-0.289.5.dist-info/licenses/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
247
- strawberry_graphql-0.289.5.dist-info/RECORD,,
243
+ strawberry_graphql-0.289.6.dist-info/METADATA,sha256=hvqIzyoQ-hE8K5A0HX3XSBHBTS_GIb8xrYZuS3ot-Jo,7394
244
+ strawberry_graphql-0.289.6.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
245
+ strawberry_graphql-0.289.6.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
246
+ strawberry_graphql-0.289.6.dist-info/licenses/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
247
+ strawberry_graphql-0.289.6.dist-info/RECORD,,