strawberry-graphql 0.248.0__tar.gz → 0.249.0__tar.gz

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.
Files changed (236) hide show
  1. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/PKG-INFO +1 -1
  2. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/pyproject.toml +3 -3
  3. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/channels/testing.py +6 -4
  4. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/cli/commands/codegen.py +9 -5
  5. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/experimental/pydantic/object_type.py +2 -2
  6. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/tracing/__init__.py +0 -6
  7. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/subscriptions/protocols/graphql_ws/handlers.py +8 -7
  8. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/utils/typing.py +6 -1
  9. strawberry_graphql-0.248.0/strawberry/extensions/tracing/sentry.py +0 -161
  10. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/LICENSE +0 -0
  11. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/README.md +0 -0
  12. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/__init__.py +0 -0
  13. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/__main__.py +0 -0
  14. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/aiohttp/__init__.py +0 -0
  15. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/aiohttp/test/__init__.py +0 -0
  16. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/aiohttp/test/client.py +0 -0
  17. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/aiohttp/views.py +0 -0
  18. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/annotation.py +0 -0
  19. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/asgi/__init__.py +0 -0
  20. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/asgi/test/__init__.py +0 -0
  21. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/asgi/test/client.py +0 -0
  22. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/chalice/__init__.py +0 -0
  23. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/chalice/views.py +0 -0
  24. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/channels/__init__.py +0 -0
  25. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/channels/handlers/__init__.py +0 -0
  26. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/channels/handlers/base.py +0 -0
  27. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/channels/handlers/http_handler.py +0 -0
  28. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/channels/handlers/ws_handler.py +0 -0
  29. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/channels/router.py +0 -0
  30. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/cli/__init__.py +0 -0
  31. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/cli/app.py +0 -0
  32. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/cli/commands/__init__.py +0 -0
  33. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/cli/commands/export_schema.py +0 -0
  34. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/cli/commands/schema_codegen.py +0 -0
  35. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/cli/commands/server.py +0 -0
  36. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/cli/commands/upgrade/__init__.py +0 -0
  37. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/cli/commands/upgrade/_fake_progress.py +0 -0
  38. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/cli/commands/upgrade/_run_codemod.py +0 -0
  39. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/cli/constants.py +0 -0
  40. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/cli/debug_server.py +0 -0
  41. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/cli/utils/__init__.py +0 -0
  42. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/cli/utils/load_schema.py +0 -0
  43. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/codegen/__init__.py +0 -0
  44. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/codegen/exceptions.py +0 -0
  45. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/codegen/plugins/__init__.py +0 -0
  46. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/codegen/plugins/print_operation.py +0 -0
  47. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/codegen/plugins/python.py +0 -0
  48. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/codegen/plugins/typescript.py +0 -0
  49. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/codegen/query_codegen.py +0 -0
  50. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/codegen/types.py +0 -0
  51. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/codemods/__init__.py +0 -0
  52. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/codemods/annotated_unions.py +0 -0
  53. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/codemods/update_imports.py +0 -0
  54. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/dataloader.py +0 -0
  55. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/directive.py +0 -0
  56. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/django/__init__.py +0 -0
  57. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/django/apps.py +0 -0
  58. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/django/context.py +0 -0
  59. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/django/test/__init__.py +0 -0
  60. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/django/test/client.py +0 -0
  61. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/django/views.py +0 -0
  62. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/__init__.py +0 -0
  63. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/conflicting_arguments.py +0 -0
  64. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/duplicated_type_name.py +0 -0
  65. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/exception.py +0 -0
  66. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/exception_source.py +0 -0
  67. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/handler.py +0 -0
  68. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/invalid_argument_type.py +0 -0
  69. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/invalid_union_type.py +0 -0
  70. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/missing_arguments_annotations.py +0 -0
  71. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/missing_dependencies.py +0 -0
  72. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/missing_field_annotation.py +0 -0
  73. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/missing_return_annotation.py +0 -0
  74. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/object_is_not_a_class.py +0 -0
  75. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/object_is_not_an_enum.py +0 -0
  76. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/permission_fail_silently_requires_optional.py +0 -0
  77. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/private_strawberry_field.py +0 -0
  78. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/scalar_already_registered.py +0 -0
  79. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/syntax.py +0 -0
  80. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/unresolved_field_type.py +0 -0
  81. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/utils/__init__.py +0 -0
  82. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/exceptions/utils/source_finder.py +0 -0
  83. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/experimental/__init__.py +0 -0
  84. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/experimental/pydantic/__init__.py +0 -0
  85. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/experimental/pydantic/_compat.py +0 -0
  86. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/experimental/pydantic/conversion.py +0 -0
  87. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/experimental/pydantic/conversion_types.py +0 -0
  88. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/experimental/pydantic/error_type.py +0 -0
  89. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/experimental/pydantic/exceptions.py +0 -0
  90. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/experimental/pydantic/fields.py +0 -0
  91. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/experimental/pydantic/utils.py +0 -0
  92. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/ext/LICENSE +0 -0
  93. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/ext/__init__.py +0 -0
  94. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/ext/dataclasses/LICENSE +0 -0
  95. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/ext/dataclasses/__init__.py +0 -0
  96. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/ext/dataclasses/dataclasses.py +0 -0
  97. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/ext/mypy_plugin.py +0 -0
  98. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/__init__.py +0 -0
  99. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/add_validation_rules.py +0 -0
  100. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/base_extension.py +0 -0
  101. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/context.py +0 -0
  102. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/directives.py +0 -0
  103. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/disable_validation.py +0 -0
  104. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/field_extension.py +0 -0
  105. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/mask_errors.py +0 -0
  106. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/max_aliases.py +0 -0
  107. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/max_tokens.py +0 -0
  108. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/parser_cache.py +0 -0
  109. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/pyinstrument.py +0 -0
  110. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/query_depth_limiter.py +0 -0
  111. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/runner.py +0 -0
  112. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/tracing/apollo.py +0 -0
  113. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/tracing/datadog.py +0 -0
  114. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/tracing/opentelemetry.py +0 -0
  115. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/tracing/utils.py +0 -0
  116. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/utils.py +0 -0
  117. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/extensions/validation_cache.py +0 -0
  118. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/fastapi/__init__.py +0 -0
  119. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/fastapi/context.py +0 -0
  120. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/fastapi/router.py +0 -0
  121. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/federation/__init__.py +0 -0
  122. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/federation/argument.py +0 -0
  123. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/federation/enum.py +0 -0
  124. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/federation/field.py +0 -0
  125. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/federation/mutation.py +0 -0
  126. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/federation/object_type.py +0 -0
  127. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/federation/scalar.py +0 -0
  128. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/federation/schema.py +0 -0
  129. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/federation/schema_directive.py +0 -0
  130. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/federation/schema_directives.py +0 -0
  131. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/federation/types.py +0 -0
  132. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/federation/union.py +0 -0
  133. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/field_extensions/__init__.py +0 -0
  134. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/field_extensions/input_mutation.py +0 -0
  135. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/file_uploads/__init__.py +0 -0
  136. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/file_uploads/scalars.py +0 -0
  137. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/file_uploads/utils.py +0 -0
  138. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/flask/__init__.py +0 -0
  139. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/flask/views.py +0 -0
  140. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/http/__init__.py +0 -0
  141. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/http/async_base_view.py +0 -0
  142. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/http/base.py +0 -0
  143. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/http/exceptions.py +0 -0
  144. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/http/ides.py +0 -0
  145. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/http/parse_content_type.py +0 -0
  146. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/http/sync_base_view.py +0 -0
  147. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/http/temporal_response.py +0 -0
  148. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/http/types.py +0 -0
  149. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/http/typevars.py +0 -0
  150. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/litestar/__init__.py +0 -0
  151. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/litestar/controller.py +0 -0
  152. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/parent.py +0 -0
  153. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/permission.py +0 -0
  154. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/printer/__init__.py +0 -0
  155. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/printer/ast_from_value.py +0 -0
  156. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/printer/printer.py +0 -0
  157. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/py.typed +0 -0
  158. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/quart/__init__.py +0 -0
  159. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/quart/views.py +0 -0
  160. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/relay/__init__.py +0 -0
  161. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/relay/exceptions.py +0 -0
  162. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/relay/fields.py +0 -0
  163. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/relay/types.py +0 -0
  164. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/relay/utils.py +0 -0
  165. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/resolvers.py +0 -0
  166. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/sanic/__init__.py +0 -0
  167. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/sanic/context.py +0 -0
  168. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/sanic/utils.py +0 -0
  169. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/sanic/views.py +0 -0
  170. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/scalars.py +0 -0
  171. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/schema/__init__.py +0 -0
  172. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/schema/base.py +0 -0
  173. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/schema/compat.py +0 -0
  174. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/schema/config.py +0 -0
  175. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/schema/exceptions.py +0 -0
  176. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/schema/execute.py +0 -0
  177. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/schema/name_converter.py +0 -0
  178. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/schema/schema.py +0 -0
  179. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/schema/schema_converter.py +0 -0
  180. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/schema/subscribe.py +0 -0
  181. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/schema/types/__init__.py +0 -0
  182. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/schema/types/base_scalars.py +0 -0
  183. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/schema/types/concrete_type.py +0 -0
  184. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/schema/types/scalar.py +0 -0
  185. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/schema/validation_rules/__init__.py +0 -0
  186. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/schema/validation_rules/one_of.py +0 -0
  187. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/schema_codegen/__init__.py +0 -0
  188. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/schema_directive.py +0 -0
  189. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/schema_directives.py +0 -0
  190. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/static/apollo-sandbox.html +0 -0
  191. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/static/graphiql.html +0 -0
  192. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/static/pathfinder.html +0 -0
  193. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/subscriptions/__init__.py +0 -0
  194. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/subscriptions/protocols/__init__.py +0 -0
  195. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/subscriptions/protocols/graphql_transport_ws/__init__.py +0 -0
  196. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/subscriptions/protocols/graphql_transport_ws/handlers.py +0 -0
  197. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/subscriptions/protocols/graphql_transport_ws/types.py +0 -0
  198. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/subscriptions/protocols/graphql_ws/__init__.py +0 -0
  199. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/subscriptions/protocols/graphql_ws/types.py +0 -0
  200. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/test/__init__.py +0 -0
  201. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/test/client.py +0 -0
  202. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/tools/__init__.py +0 -0
  203. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/tools/create_type.py +0 -0
  204. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/tools/merge_types.py +0 -0
  205. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/types/__init__.py +0 -0
  206. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/types/arguments.py +0 -0
  207. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/types/auto.py +0 -0
  208. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/types/base.py +0 -0
  209. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/types/enum.py +0 -0
  210. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/types/execution.py +0 -0
  211. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/types/field.py +0 -0
  212. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/types/fields/__init__.py +0 -0
  213. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/types/fields/resolver.py +0 -0
  214. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/types/graphql.py +0 -0
  215. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/types/info.py +0 -0
  216. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/types/lazy_type.py +0 -0
  217. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/types/mutation.py +0 -0
  218. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/types/nodes.py +0 -0
  219. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/types/object_type.py +0 -0
  220. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/types/private.py +0 -0
  221. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/types/scalar.py +0 -0
  222. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/types/type_resolver.py +0 -0
  223. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/types/union.py +0 -0
  224. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/types/unset.py +0 -0
  225. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/utils/__init__.py +0 -0
  226. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/utils/aio.py +0 -0
  227. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/utils/await_maybe.py +0 -0
  228. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/utils/dataclasses.py +0 -0
  229. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/utils/debug.py +0 -0
  230. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/utils/deprecations.py +0 -0
  231. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/utils/graphql_lexer.py +0 -0
  232. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/utils/importer.py +0 -0
  233. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/utils/inspect.py +0 -0
  234. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/utils/logging.py +0 -0
  235. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/utils/operation.py +0 -0
  236. {strawberry_graphql-0.248.0 → strawberry_graphql-0.249.0}/strawberry/utils/str_converters.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: strawberry-graphql
3
- Version: 0.248.0
3
+ Version: 0.249.0
4
4
  Summary: A library for creating GraphQL APIs
5
5
  Home-page: https://strawberry.rocks/
6
6
  License: MIT
@@ -1,7 +1,7 @@
1
1
  [tool.poetry]
2
2
  name = "strawberry-graphql"
3
3
  packages = [ { include = "strawberry" } ]
4
- version = "0.248.0"
4
+ version = "0.249.0"
5
5
  description = "A library for creating GraphQL APIs"
6
6
  authors = ["Patrick Arminio <patrick.arminio@gmail.com>"]
7
7
  license = "MIT"
@@ -85,7 +85,6 @@ pytest-xdist = {extras = ["psutil"], version = "^3.1.0"}
85
85
  python-multipart = ">=0.0.7"
86
86
  rich = {version = ">=12.5.1", optional = false}
87
87
  sanic-testing = ">=22.9,<24.0"
88
- sentry-sdk = "^1.39.2"
89
88
  typer = {version = ">=0.7.0", optional = false}
90
89
  types-aiofiles = ">=22.1"
91
90
  types-certifi = "^2021.10.8"
@@ -157,8 +156,9 @@ markers = [
157
156
  "fastapi",
158
157
  "flaky",
159
158
  "flask",
160
- "quart",
159
+ "litestar",
161
160
  "pydantic",
161
+ "quart",
162
162
  "relay",
163
163
  "sanic",
164
164
  "starlette",
@@ -111,15 +111,17 @@ class GraphQLWebsocketCommunicator(WebsocketCommunicator):
111
111
  await self.send_json_to(
112
112
  ConnectionInitMessage(payload=self.connection_params).as_dict()
113
113
  )
114
- response = await self.receive_json_from()
115
- assert response == ConnectionAckMessage().as_dict()
114
+ graphql_transport_ws_response = await self.receive_json_from()
115
+ assert graphql_transport_ws_response == ConnectionAckMessage().as_dict()
116
116
  else:
117
117
  assert res == (True, GRAPHQL_WS_PROTOCOL)
118
118
  await self.send_json_to(
119
119
  GraphQLWSConnectionInitMessage({"type": "connection_init"})
120
120
  )
121
- response: GraphQLWSConnectionAckMessage = await self.receive_json_from()
122
- assert response["type"] == "connection_ack"
121
+ graphql_ws_response: GraphQLWSConnectionAckMessage = (
122
+ await self.receive_json_from()
123
+ )
124
+ assert graphql_ws_response["type"] == "connection_ack"
123
125
 
124
126
  # Actual `ExecutionResult`` objects are not available client-side, since they
125
127
  # get transformed into `FormattedExecutionResult` on the wire, but we attempt
@@ -4,7 +4,7 @@ import functools
4
4
  import importlib
5
5
  import inspect
6
6
  from pathlib import Path # noqa: TCH003
7
- from typing import List, Optional, Type
7
+ from typing import List, Optional, Type, Union, cast
8
8
 
9
9
  import rich
10
10
  import typer
@@ -61,7 +61,9 @@ def _import_plugin(plugin: str) -> Optional[Type[QueryCodegenPlugin]]:
61
61
 
62
62
 
63
63
  @functools.lru_cache
64
- def _load_plugin(plugin_path: str) -> Type[QueryCodegenPlugin]:
64
+ def _load_plugin(
65
+ plugin_path: str,
66
+ ) -> Union[Type[QueryCodegenPlugin], Type[ConsolePlugin]]:
65
67
  # try to import plugin_name from current folder
66
68
  # then try to import from strawberry.codegen.plugins
67
69
 
@@ -77,7 +79,9 @@ def _load_plugin(plugin_path: str) -> Type[QueryCodegenPlugin]:
77
79
  return plugin
78
80
 
79
81
 
80
- def _load_plugins(plugin_ids: List[str], query: Path) -> List[QueryCodegenPlugin]:
82
+ def _load_plugins(
83
+ plugin_ids: List[str], query: Path
84
+ ) -> List[Union[QueryCodegenPlugin, ConsolePlugin]]:
81
85
  plugins = []
82
86
  for ptype_id in plugin_ids:
83
87
  ptype = _load_plugin(ptype_id)
@@ -127,11 +131,11 @@ def codegen(
127
131
 
128
132
  console_plugin_type = _load_plugin(cli_plugin) if cli_plugin else ConsolePlugin
129
133
  console_plugin = console_plugin_type(output_dir)
134
+ assert isinstance(console_plugin, ConsolePlugin)
130
135
  console_plugin.before_any_start()
131
136
 
132
137
  for q in query:
133
- plugins = _load_plugins(selected_plugins, q)
134
- console_plugin.query = q # update the query in the console plugin.
138
+ plugins = cast(List[QueryCodegenPlugin], _load_plugins(selected_plugins, q))
135
139
 
136
140
  code_generator = QueryCodegen(
137
141
  schema_symbol, plugins=plugins, console_plugin=console_plugin
@@ -105,7 +105,7 @@ def _build_dataclass_creation_fields(
105
105
 
106
106
  return DataclassCreationFields(
107
107
  name=field.name,
108
- field_type=field_type,
108
+ field_type=field_type, # type: ignore
109
109
  field=strawberry_field,
110
110
  )
111
111
 
@@ -198,7 +198,7 @@ def type(
198
198
  all_model_fields = [
199
199
  DataclassCreationFields(
200
200
  name=field.name,
201
- field_type=field.type,
201
+ field_type=field.type, # type: ignore
202
202
  field=field,
203
203
  )
204
204
  for field in extra_fields + private_fields
@@ -8,7 +8,6 @@ if TYPE_CHECKING:
8
8
  OpenTelemetryExtension,
9
9
  OpenTelemetryExtensionSync,
10
10
  )
11
- from .sentry import SentryTracingExtension, SentryTracingExtensionSync
12
11
 
13
12
  __all__ = [
14
13
  "ApolloTracingExtension",
@@ -17,8 +16,6 @@ __all__ = [
17
16
  "DatadogTracingExtensionSync",
18
17
  "OpenTelemetryExtension",
19
18
  "OpenTelemetryExtensionSync",
20
- "SentryTracingExtension",
21
- "SentryTracingExtensionSync",
22
19
  ]
23
20
 
24
21
 
@@ -32,7 +29,4 @@ def __getattr__(name: str) -> Any:
32
29
  if name in {"OpenTelemetryExtension", "OpenTelemetryExtensionSync"}:
33
30
  return getattr(importlib.import_module(".opentelemetry", __name__), name)
34
31
 
35
- if name in {"SentryTracingExtension", "SentryTracingExtensionSync"}:
36
- return getattr(importlib.import_module(".sentry", __name__), name)
37
-
38
32
  raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
@@ -169,16 +169,17 @@ class BaseGraphQLWSHandler:
169
169
  await self.websocket.send_json(error_message)
170
170
  else:
171
171
  self.subscriptions[operation_id] = agen_or_err
172
+
172
173
  async for result in agen_or_err:
173
174
  await self.send_data(result, operation_id)
174
- complete_message: CompleteMessage = {
175
- "type": "complete",
176
- "id": operation_id,
177
- }
178
- await self.websocket.send_json(complete_message)
175
+
176
+ await self.websocket.send_json(
177
+ CompleteMessage({"type": "complete", "id": operation_id})
178
+ )
179
179
  except asyncio.CancelledError:
180
- complete_message: CompleteMessage = {"type": "complete", "id": operation_id}
181
- await self.websocket.send_json(complete_message)
180
+ await self.websocket.send_json(
181
+ CompleteMessage({"type": "complete", "id": operation_id})
182
+ )
182
183
 
183
184
  async def cleanup_operation(self, operation_id: str) -> None:
184
185
  if operation_id in self.subscriptions:
@@ -350,7 +350,12 @@ def eval_type(
350
350
  assert ast_unparse
351
351
  type_ = ForwardRef(ast_unparse(ast_obj))
352
352
 
353
- return _eval_type(type_, globalns, localns)
353
+ extra: Dict[str, Any] = {}
354
+
355
+ if sys.version_info >= (3, 13):
356
+ extra = {"type_params": None}
357
+
358
+ return _eval_type(type_, globalns, localns, **extra)
354
359
 
355
360
  origin = get_origin(type_)
356
361
  if origin is not None:
@@ -1,161 +0,0 @@
1
- from __future__ import annotations
2
-
3
- import hashlib
4
- import warnings
5
- from functools import cached_property
6
- from inspect import isawaitable
7
- from typing import TYPE_CHECKING, Any, Callable, Generator, Optional
8
-
9
- from sentry_sdk import configure_scope, start_span
10
-
11
- from strawberry.extensions import SchemaExtension
12
- from strawberry.extensions.tracing.utils import should_skip_tracing
13
-
14
- if TYPE_CHECKING:
15
- from graphql import GraphQLResolveInfo
16
-
17
- from strawberry.types.execution import ExecutionContext
18
-
19
-
20
- class SentryTracingExtension(SchemaExtension):
21
- def __init__(
22
- self,
23
- *,
24
- execution_context: Optional[ExecutionContext] = None,
25
- ) -> None:
26
- warnings.warn(
27
- "The Sentry tracing extension is deprecated, please update to sentry-sdk>=1.32.0",
28
- DeprecationWarning,
29
- stacklevel=2,
30
- )
31
-
32
- if execution_context:
33
- self.execution_context = execution_context
34
-
35
- @cached_property
36
- def _resource_name(self) -> str:
37
- assert self.execution_context.query
38
-
39
- query_hash = self.hash_query(self.execution_context.query)
40
-
41
- if self.execution_context.operation_name:
42
- return f"{self.execution_context.operation_name}:{query_hash}"
43
-
44
- return query_hash
45
-
46
- def hash_query(self, query: str) -> str:
47
- return hashlib.md5(query.encode("utf-8")).hexdigest()
48
-
49
- def on_operation(self) -> Generator[None, None, None]:
50
- self._operation_name = self.execution_context.operation_name
51
- name = f"{self._operation_name}" if self._operation_name else "Anonymous Query"
52
-
53
- with configure_scope() as scope:
54
- if scope.span:
55
- self.gql_span = scope.span.start_child(
56
- op="gql",
57
- description=name,
58
- )
59
- else:
60
- self.gql_span = start_span(
61
- op="gql",
62
- )
63
-
64
- operation_type = "query"
65
-
66
- assert self.execution_context.query
67
-
68
- if self.execution_context.query.strip().startswith("mutation"):
69
- operation_type = "mutation"
70
- if self.execution_context.query.strip().startswith("subscription"):
71
- operation_type = "subscription"
72
-
73
- self.gql_span.set_tag("graphql.operation_type", operation_type)
74
- self.gql_span.set_tag("graphql.resource_name", self._resource_name)
75
- self.gql_span.set_data("graphql.query", self.execution_context.query)
76
-
77
- yield
78
-
79
- self.gql_span.finish()
80
-
81
- def on_validate(self) -> Generator[None, None, None]:
82
- self.validation_span = self.gql_span.start_child(
83
- op="validation", description="Validation"
84
- )
85
-
86
- yield
87
-
88
- self.validation_span.finish()
89
-
90
- def on_parse(self) -> Generator[None, None, None]:
91
- self.parsing_span = self.gql_span.start_child(
92
- op="parsing", description="Parsing"
93
- )
94
-
95
- yield
96
-
97
- self.parsing_span.finish()
98
-
99
- def should_skip_tracing(self, _next: Callable, info: GraphQLResolveInfo) -> bool:
100
- return should_skip_tracing(_next, info)
101
-
102
- async def resolve(
103
- self,
104
- _next: Callable,
105
- root: Any,
106
- info: GraphQLResolveInfo,
107
- *args: str,
108
- **kwargs: Any,
109
- ) -> Any:
110
- if self.should_skip_tracing(_next, info):
111
- result = _next(root, info, *args, **kwargs)
112
-
113
- if isawaitable(result): # pragma: no cover
114
- result = await result
115
-
116
- return result
117
-
118
- field_path = f"{info.parent_type}.{info.field_name}"
119
-
120
- with self.gql_span.start_child(
121
- op="resolve", description=f"Resolving: {field_path}"
122
- ) as span:
123
- span.set_tag("graphql.field_name", info.field_name)
124
- span.set_tag("graphql.parent_type", info.parent_type.name)
125
- span.set_tag("graphql.field_path", field_path)
126
- span.set_tag("graphql.path", ".".join(map(str, info.path.as_list())))
127
-
128
- result = _next(root, info, *args, **kwargs)
129
-
130
- if isawaitable(result):
131
- result = await result
132
-
133
- return result
134
-
135
-
136
- class SentryTracingExtensionSync(SentryTracingExtension):
137
- def resolve(
138
- self,
139
- _next: Callable,
140
- root: Any,
141
- info: GraphQLResolveInfo,
142
- *args: str,
143
- **kwargs: Any,
144
- ) -> Any:
145
- if self.should_skip_tracing(_next, info):
146
- return _next(root, info, *args, **kwargs)
147
-
148
- field_path = f"{info.parent_type}.{info.field_name}"
149
-
150
- with self.gql_span.start_child(
151
- op="resolve", description=f"Resolving: {field_path}"
152
- ) as span:
153
- span.set_tag("graphql.field_name", info.field_name)
154
- span.set_tag("graphql.parent_type", info.parent_type.name)
155
- span.set_tag("graphql.field_path", field_path)
156
- span.set_tag("graphql.path", ".".join(map(str, info.path.as_list())))
157
-
158
- return _next(root, info, *args, **kwargs)
159
-
160
-
161
- __all__ = ["SentryTracingExtension", "SentryTracingExtensionSync"]