strawberry-graphql 0.281.0__py3-none-any.whl → 0.282.0__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.

@@ -1,10 +1,11 @@
1
- from collections.abc import Iterator
2
- from typing import Any, Callable
1
+ from collections.abc import Callable, Iterator
2
+ from typing import Any
3
3
 
4
4
  from graphql.error import GraphQLError
5
- from graphql.execution import ExecutionResult
5
+ from graphql.execution.execute import ExecutionResult as GraphQLExecutionResult
6
6
 
7
7
  from strawberry.extensions.base_extension import SchemaExtension
8
+ from strawberry.types.execution import ExecutionResult as StrawberryExecutionResult
8
9
 
9
10
 
10
11
  def default_should_mask_error(_: GraphQLError) -> bool:
@@ -54,10 +55,7 @@ class MaskErrors(SchemaExtension):
54
55
 
55
56
  result = self.execution_context.result
56
57
 
57
- if isinstance(result, ExecutionResult):
58
+ if isinstance(result, (GraphQLExecutionResult, StrawberryExecutionResult)):
58
59
  self._process_result(result)
59
60
  elif result:
60
61
  self._process_result(result.initial_result)
61
-
62
-
63
- __all__ = ["MaskErrors"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: strawberry-graphql
3
- Version: 0.281.0
3
+ Version: 0.282.0
4
4
  Summary: A library for creating GraphQL APIs
5
5
  License: MIT
6
6
  Keywords: graphql,api,rest,starlette,async
@@ -99,7 +99,7 @@ strawberry/extensions/directives.py,sha256=MYAA6lhlmWZM5q8In6Os53LWAUVuVa7AuLtTX
99
99
  strawberry/extensions/disable_introspection.py,sha256=7FmktNvc9CzOJG9xf_nYG3LThs0cv-g2P-Kzlerna7w,717
100
100
  strawberry/extensions/disable_validation.py,sha256=WaA7x6Q-K4IMnvx35OQ1UtokIKaxkWvO_OJO9fFM_vA,750
101
101
  strawberry/extensions/field_extension.py,sha256=VUwUBbf57Vp_Ukc3Rh9eZDRuF2ubzRRipzsU-w5bAFc,5561
102
- strawberry/extensions/mask_errors.py,sha256=bKTdL4zWnY56QLZHqRjzZ39rHe4DDz2zPDinS3H-sIw,1765
102
+ strawberry/extensions/mask_errors.py,sha256=_tCJUxnGRSf5uM2irg8OBVxzKfenT3C1_TD4sOj-5SQ,1892
103
103
  strawberry/extensions/max_aliases.py,sha256=qaV9rqHTqfhh7YdFnXVvjf14wmAiXBtKHGAxb1Yv4DQ,2547
104
104
  strawberry/extensions/max_tokens.py,sha256=53Gb0tSj-G7so_vLokdmtUal4KCXQBYLJi1LSIvdkXE,1045
105
105
  strawberry/extensions/parser_cache.py,sha256=oi6Svpy21_YP-d9G3nv_5HzJPw5FyBhWplCYnzcKwO8,1291
@@ -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=SDvX-Du-9HAV3-XXjqi7Q5f5qPDDFd_gASIITiwBQT4,14073
240
- strawberry_graphql-0.281.0.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
241
- strawberry_graphql-0.281.0.dist-info/METADATA,sha256=r4ayfeMVhBiwfeMWmemebD2HXL5-6-0Qu_deYeTwqUY,7426
242
- strawberry_graphql-0.281.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
243
- strawberry_graphql-0.281.0.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
244
- strawberry_graphql-0.281.0.dist-info/RECORD,,
240
+ strawberry_graphql-0.282.0.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
241
+ strawberry_graphql-0.282.0.dist-info/METADATA,sha256=V997csv_7Je1S5Bk7JlMN2pVd9eTNENIoCQogatt2MQ,7426
242
+ strawberry_graphql-0.282.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
243
+ strawberry_graphql-0.282.0.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
244
+ strawberry_graphql-0.282.0.dist-info/RECORD,,