strawberry-graphql 0.267.0.dev1746643548__tar.gz → 0.268.1__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 (238) hide show
  1. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/PKG-INFO +1 -1
  2. strawberry_graphql-0.268.1/pyproject.toml +403 -0
  3. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/__init__.py +0 -2
  4. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/annotation.py +0 -7
  5. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/http/__init__.py +9 -14
  6. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/http/async_base_view.py +5 -81
  7. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/parent.py +21 -2
  8. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/printer/printer.py +2 -10
  9. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/scalars.py +3 -1
  10. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/schema/compat.py +2 -1
  11. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/schema/config.py +1 -1
  12. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/schema/schema.py +13 -60
  13. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/schema/schema_converter.py +60 -8
  14. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/schema/types/scalar.py +3 -16
  15. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/static/graphiql.html +5 -5
  16. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/arguments.py +2 -2
  17. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/fields/resolver.py +12 -5
  18. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/scalar.py +2 -0
  19. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/utils/typing.py +18 -0
  20. strawberry_graphql-0.267.0.dev1746643548/pyproject.toml +0 -398
  21. strawberry_graphql-0.267.0.dev1746643548/strawberry/schema/_graphql_core.py +0 -46
  22. strawberry_graphql-0.267.0.dev1746643548/strawberry/streamable.py +0 -36
  23. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/LICENSE +0 -0
  24. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/README.md +0 -0
  25. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/__main__.py +0 -0
  26. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/aiohttp/__init__.py +0 -0
  27. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/aiohttp/test/__init__.py +0 -0
  28. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/aiohttp/test/client.py +0 -0
  29. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/aiohttp/views.py +0 -0
  30. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/asgi/__init__.py +0 -0
  31. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/asgi/test/__init__.py +0 -0
  32. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/asgi/test/client.py +0 -0
  33. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/chalice/__init__.py +0 -0
  34. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/chalice/views.py +0 -0
  35. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/channels/__init__.py +0 -0
  36. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/channels/handlers/__init__.py +0 -0
  37. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/channels/handlers/base.py +0 -0
  38. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/channels/handlers/http_handler.py +0 -0
  39. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/channels/handlers/ws_handler.py +0 -0
  40. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/channels/router.py +0 -0
  41. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/channels/testing.py +0 -0
  42. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/cli/__init__.py +0 -0
  43. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/cli/app.py +0 -0
  44. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/cli/commands/__init__.py +0 -0
  45. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/cli/commands/codegen.py +0 -0
  46. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/cli/commands/export_schema.py +0 -0
  47. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/cli/commands/schema_codegen.py +0 -0
  48. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/cli/commands/server.py +0 -0
  49. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/cli/commands/upgrade/__init__.py +0 -0
  50. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/cli/commands/upgrade/_fake_progress.py +0 -0
  51. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/cli/commands/upgrade/_run_codemod.py +0 -0
  52. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/cli/constants.py +0 -0
  53. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/cli/debug_server.py +0 -0
  54. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/cli/utils/__init__.py +0 -0
  55. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/cli/utils/load_schema.py +0 -0
  56. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/codegen/__init__.py +0 -0
  57. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/codegen/exceptions.py +0 -0
  58. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/codegen/plugins/__init__.py +0 -0
  59. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/codegen/plugins/print_operation.py +0 -0
  60. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/codegen/plugins/python.py +0 -0
  61. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/codegen/plugins/typescript.py +0 -0
  62. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/codegen/query_codegen.py +0 -0
  63. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/codegen/types.py +0 -0
  64. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/codemods/__init__.py +0 -0
  65. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/codemods/annotated_unions.py +0 -0
  66. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/codemods/update_imports.py +0 -0
  67. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/dataloader.py +0 -0
  68. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/directive.py +0 -0
  69. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/django/__init__.py +0 -0
  70. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/django/apps.py +0 -0
  71. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/django/context.py +0 -0
  72. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/django/test/__init__.py +0 -0
  73. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/django/test/client.py +0 -0
  74. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/django/views.py +0 -0
  75. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/__init__.py +0 -0
  76. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/conflicting_arguments.py +0 -0
  77. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/duplicated_type_name.py +0 -0
  78. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/exception.py +0 -0
  79. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/exception_source.py +0 -0
  80. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/handler.py +0 -0
  81. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/invalid_argument_type.py +0 -0
  82. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/invalid_union_type.py +0 -0
  83. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/missing_arguments_annotations.py +0 -0
  84. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/missing_dependencies.py +0 -0
  85. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/missing_field_annotation.py +0 -0
  86. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/missing_return_annotation.py +0 -0
  87. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/object_is_not_a_class.py +0 -0
  88. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/object_is_not_an_enum.py +0 -0
  89. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/permission_fail_silently_requires_optional.py +0 -0
  90. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/private_strawberry_field.py +0 -0
  91. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/scalar_already_registered.py +0 -0
  92. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/syntax.py +0 -0
  93. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/unresolved_field_type.py +0 -0
  94. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/utils/__init__.py +0 -0
  95. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/exceptions/utils/source_finder.py +0 -0
  96. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/experimental/__init__.py +0 -0
  97. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/experimental/pydantic/__init__.py +0 -0
  98. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/experimental/pydantic/_compat.py +0 -0
  99. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/experimental/pydantic/conversion.py +0 -0
  100. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/experimental/pydantic/conversion_types.py +0 -0
  101. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/experimental/pydantic/error_type.py +0 -0
  102. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/experimental/pydantic/exceptions.py +0 -0
  103. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/experimental/pydantic/fields.py +0 -0
  104. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/experimental/pydantic/object_type.py +0 -0
  105. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/experimental/pydantic/utils.py +0 -0
  106. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/ext/LICENSE +0 -0
  107. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/ext/__init__.py +0 -0
  108. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/ext/dataclasses/LICENSE +0 -0
  109. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/ext/dataclasses/__init__.py +0 -0
  110. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/ext/dataclasses/dataclasses.py +0 -0
  111. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/ext/mypy_plugin.py +0 -0
  112. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/__init__.py +0 -0
  113. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/add_validation_rules.py +0 -0
  114. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/base_extension.py +0 -0
  115. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/context.py +0 -0
  116. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/directives.py +0 -0
  117. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/disable_validation.py +0 -0
  118. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/field_extension.py +0 -0
  119. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/mask_errors.py +0 -0
  120. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/max_aliases.py +0 -0
  121. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/max_tokens.py +0 -0
  122. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/parser_cache.py +0 -0
  123. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/pyinstrument.py +0 -0
  124. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/query_depth_limiter.py +0 -0
  125. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/runner.py +0 -0
  126. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/tracing/__init__.py +0 -0
  127. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/tracing/apollo.py +0 -0
  128. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/tracing/datadog.py +0 -0
  129. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/tracing/opentelemetry.py +0 -0
  130. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/tracing/utils.py +0 -0
  131. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/utils.py +0 -0
  132. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/extensions/validation_cache.py +0 -0
  133. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/fastapi/__init__.py +0 -0
  134. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/fastapi/context.py +0 -0
  135. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/fastapi/router.py +0 -0
  136. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/federation/__init__.py +0 -0
  137. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/federation/argument.py +0 -0
  138. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/federation/enum.py +0 -0
  139. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/federation/field.py +0 -0
  140. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/federation/mutation.py +0 -0
  141. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/federation/object_type.py +0 -0
  142. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/federation/scalar.py +0 -0
  143. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/federation/schema.py +0 -0
  144. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/federation/schema_directive.py +0 -0
  145. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/federation/schema_directives.py +0 -0
  146. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/federation/types.py +0 -0
  147. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/federation/union.py +0 -0
  148. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/field_extensions/__init__.py +0 -0
  149. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/field_extensions/input_mutation.py +0 -0
  150. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/file_uploads/__init__.py +0 -0
  151. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/file_uploads/scalars.py +0 -0
  152. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/file_uploads/utils.py +0 -0
  153. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/flask/__init__.py +0 -0
  154. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/flask/views.py +0 -0
  155. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/http/base.py +0 -0
  156. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/http/exceptions.py +0 -0
  157. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/http/ides.py +0 -0
  158. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/http/parse_content_type.py +0 -0
  159. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/http/sync_base_view.py +0 -0
  160. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/http/temporal_response.py +0 -0
  161. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/http/types.py +0 -0
  162. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/http/typevars.py +0 -0
  163. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/litestar/__init__.py +0 -0
  164. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/litestar/controller.py +0 -0
  165. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/permission.py +0 -0
  166. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/printer/__init__.py +0 -0
  167. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/printer/ast_from_value.py +0 -0
  168. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/py.typed +0 -0
  169. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/quart/__init__.py +0 -0
  170. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/quart/views.py +0 -0
  171. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/relay/__init__.py +0 -0
  172. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/relay/exceptions.py +0 -0
  173. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/relay/fields.py +0 -0
  174. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/relay/types.py +0 -0
  175. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/relay/utils.py +0 -0
  176. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/resolvers.py +0 -0
  177. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/sanic/__init__.py +0 -0
  178. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/sanic/context.py +0 -0
  179. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/sanic/utils.py +0 -0
  180. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/sanic/views.py +0 -0
  181. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/schema/__init__.py +0 -0
  182. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/schema/base.py +0 -0
  183. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/schema/exceptions.py +0 -0
  184. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/schema/name_converter.py +0 -0
  185. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/schema/types/__init__.py +0 -0
  186. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/schema/types/base_scalars.py +0 -0
  187. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/schema/types/concrete_type.py +0 -0
  188. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/schema/validation_rules/__init__.py +0 -0
  189. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/schema/validation_rules/one_of.py +0 -0
  190. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/schema_codegen/__init__.py +0 -0
  191. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/schema_directive.py +0 -0
  192. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/schema_directives.py +0 -0
  193. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/static/apollo-sandbox.html +0 -0
  194. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/static/pathfinder.html +0 -0
  195. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/subscriptions/__init__.py +0 -0
  196. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/subscriptions/protocols/__init__.py +0 -0
  197. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/subscriptions/protocols/graphql_transport_ws/__init__.py +0 -0
  198. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/subscriptions/protocols/graphql_transport_ws/handlers.py +0 -0
  199. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/subscriptions/protocols/graphql_transport_ws/types.py +0 -0
  200. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/subscriptions/protocols/graphql_ws/__init__.py +0 -0
  201. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/subscriptions/protocols/graphql_ws/handlers.py +0 -0
  202. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/subscriptions/protocols/graphql_ws/types.py +0 -0
  203. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/test/__init__.py +0 -0
  204. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/test/client.py +0 -0
  205. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/tools/__init__.py +0 -0
  206. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/tools/create_type.py +0 -0
  207. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/tools/merge_types.py +0 -0
  208. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/__init__.py +0 -0
  209. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/auto.py +0 -0
  210. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/base.py +0 -0
  211. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/cast.py +0 -0
  212. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/enum.py +0 -0
  213. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/execution.py +0 -0
  214. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/field.py +0 -0
  215. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/fields/__init__.py +0 -0
  216. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/graphql.py +0 -0
  217. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/info.py +0 -0
  218. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/lazy_type.py +0 -0
  219. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/maybe.py +0 -0
  220. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/mutation.py +0 -0
  221. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/nodes.py +0 -0
  222. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/object_type.py +0 -0
  223. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/private.py +0 -0
  224. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/type_resolver.py +0 -0
  225. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/union.py +0 -0
  226. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/types/unset.py +0 -0
  227. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/utils/__init__.py +0 -0
  228. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/utils/aio.py +0 -0
  229. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/utils/await_maybe.py +0 -0
  230. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/utils/dataclasses.py +0 -0
  231. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/utils/debug.py +0 -0
  232. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/utils/deprecations.py +0 -0
  233. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/utils/graphql_lexer.py +0 -0
  234. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/utils/importer.py +0 -0
  235. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/utils/inspect.py +0 -0
  236. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/utils/logging.py +0 -0
  237. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/utils/operation.py +0 -0
  238. {strawberry_graphql-0.267.0.dev1746643548 → strawberry_graphql-0.268.1}/strawberry/utils/str_converters.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: strawberry-graphql
3
- Version: 0.267.0.dev1746643548
3
+ Version: 0.268.1
4
4
  Summary: A library for creating GraphQL APIs
5
5
  License: MIT
6
6
  Keywords: graphql,api,rest,starlette,async
@@ -0,0 +1,403 @@
1
+ [tool.poetry]
2
+ name = "strawberry-graphql"
3
+ version = "0.268.1"
4
+ packages = [{ include = "strawberry" }]
5
+ description = "A library for creating GraphQL APIs"
6
+ authors = ["Patrick Arminio <patrick.arminio@gmail.com>"]
7
+ license = "MIT"
8
+ readme = "README.md"
9
+ keywords = ["graphql", "api", "rest", "starlette", "async"]
10
+ homepage = "https://strawberry.rocks/"
11
+ repository = "https://github.com/strawberry-graphql/strawberry"
12
+ documentation = "https://strawberry.rocks/"
13
+ classifiers = [
14
+ "Development Status :: 5 - Production/Stable",
15
+ "Intended Audience :: Developers",
16
+ "Topic :: Software Development :: Libraries",
17
+ "Topic :: Software Development :: Libraries :: Python Modules",
18
+ "License :: OSI Approved :: MIT License",
19
+ ]
20
+ include = ["strawberry/py.typed"]
21
+
22
+ [tool.poetry.urls]
23
+ "Changelog" = "https://strawberry.rocks/changelog"
24
+ "Discord" = "https://discord.com/invite/3uQ2PaY"
25
+ "Twitter" = "https://twitter.com/strawberry_gql"
26
+ "Mastodon" = "https://farbun.social/@strawberry"
27
+ "Sponsor on GitHub" = "https://github.com/sponsors/strawberry-graphql"
28
+ "Sponsor on Open Collective" = "https://opencollective.com/strawberry-graphql"
29
+
30
+ [tool.poetry.dependencies]
31
+ python = ">=3.9"
32
+ graphql-core = { version = ">=3.2.0,<3.4.0", python = ">=3.9,<4.0" }
33
+ typing-extensions = ">=4.5.0"
34
+ python-dateutil = "^2.7.0"
35
+ packaging = ">=23"
36
+ starlette = { version = ">=0.18.0", optional = true }
37
+ typer = { version = ">=0.7.0", optional = true }
38
+ pygments = { version = "^2.3", optional = true }
39
+ uvicorn = { version = ">=0.11.6", optional = true }
40
+ Django = { version = ">=3.2", optional = true }
41
+ asgiref = { version = "^3.2", optional = true }
42
+ flask = { version = ">=1.1", optional = true }
43
+ quart = { version = ">=0.19.3", optional = true }
44
+ opentelemetry-api = { version = "<2", optional = true }
45
+ opentelemetry-sdk = { version = "<2", optional = true }
46
+ chalice = { version = "^1.22", optional = true }
47
+ pydantic = { version = ">1.6.1", optional = true }
48
+ python-multipart = { version = ">=0.0.7", optional = true }
49
+ sanic = { version = ">=20.12.2", optional = true }
50
+ aiohttp = { version = "^3.7.4.post0", optional = true }
51
+ fastapi = { version = ">=0.65.2", optional = true }
52
+ litestar = { version = ">=2", python = ">=3.10,<4.0", optional = true }
53
+ channels = { version = ">=3.0.5", optional = true }
54
+ libcst = { version = ">=0.4.7", optional = true }
55
+ rich = { version = ">=12.0.0", optional = true }
56
+ pyinstrument = { version = ">=4.0.0", optional = true }
57
+
58
+ [tool.poetry.group.dev.dependencies]
59
+ ruff = "^0.11.4"
60
+ asgiref = "^3.2"
61
+ email-validator = { version = ">=1.1.3,<3.0.0", optional = false }
62
+ freezegun = "^1.2.1"
63
+ libcst = { version = ">=1.0.0", optional = false }
64
+ MarkupSafe = "2.1.3"
65
+ nox = "^2024.4.15"
66
+ nox-poetry = "^1.0.3"
67
+ opentelemetry-api = "<2"
68
+ opentelemetry-sdk = "<2"
69
+ pygments = "^2.3"
70
+ pyinstrument = { version = ">=4.0.0", optional = false }
71
+ pytest = "^7.2"
72
+ pytest-asyncio = ">=0.20.3"
73
+ pytest-codspeed = { version = ">=3.0.0", python = ">=3.9" }
74
+ pytest-cov = "^4.0.0"
75
+ pytest-emoji = "^0.2.0"
76
+ pytest-mock = "^3.10"
77
+ pytest-snapshot = "^0.9.0"
78
+ pytest-xdist = { extras = ["psutil"], version = "^3.1.0" }
79
+ python-multipart = ">=0.0.7"
80
+ rich = { version = ">=12.5.1", optional = false }
81
+ sanic-testing = ">=22.9,<24.0"
82
+ typer = { version = ">=0.7.0", optional = false }
83
+ types-aiofiles = "^24.1.0.20250326"
84
+ types-certifi = "^2021.10.8"
85
+ types-chardet = "^5.0.4"
86
+ types-freezegun = "^1.1.9"
87
+ types-python-dateutil = "^2.8.19"
88
+ types-toml = "^0.10.8"
89
+ types-typed-ast = "^1.5.8"
90
+ types-ujson = "^5.10.0.20250326"
91
+ types-protobuf = "^5.29.1.20250403"
92
+ poetry-plugin-export = { version = "^1.6.0", python = "<4.0", optional = false }
93
+ # another bug in poetry
94
+ urllib3 = "<2"
95
+ graphlib_backport = { version = "*", python = "<3.9", optional = false }
96
+ inline-snapshot = "^0.10.1"
97
+ types-deprecated = "^1.2.15.20241117"
98
+ types-six = "^1.17.0.20250403"
99
+ types-pyyaml = "^6.0.12.20240917"
100
+ mypy = "^1.15.0"
101
+ codeflash = ">=0.9.2"
102
+
103
+ [tool.poetry.group.integrations]
104
+ optional = true
105
+
106
+ [tool.poetry.group.integrations.dependencies]
107
+ aiohttp = "^3.7.4.post0"
108
+ chalice = { version = "^1.22" }
109
+ channels = ">=3.0.5,<5.0.0"
110
+ Django = ">=3.2"
111
+ fastapi = { version = ">=0.65.0", optional = false }
112
+ flask = ">=1.1"
113
+ quart = ">=0.19.3"
114
+ pydantic = { version = ">=2.0", optional = false }
115
+ pytest-aiohttp = "^1.0.3"
116
+ pytest-django = { version = "^4.5" }
117
+ sanic = ">=20.12.2"
118
+ starlette = ">=0.13.6"
119
+ litestar = { version = ">=2", python = ">=3.10,<4.0", optional = false }
120
+ uvicorn = ">=0.11.6"
121
+ daphne = "^4.0.0"
122
+
123
+
124
+ [tool.poetry.extras]
125
+ aiohttp = ["aiohttp"]
126
+ asgi = ["starlette", "python-multipart"]
127
+ debug = ["rich", "libcst"]
128
+ debug-server = [
129
+ "starlette",
130
+ "uvicorn",
131
+ "python-multipart",
132
+ "typer",
133
+ "pygments",
134
+ "rich",
135
+ "libcst",
136
+ ]
137
+ django = ["Django", "pytest-django", "asgiref"]
138
+ channels = ["channels", "asgiref"]
139
+ flask = ["flask"]
140
+ quart = ["quart"]
141
+ opentelemetry = ["opentelemetry-api", "opentelemetry-sdk"]
142
+ pydantic = ["pydantic"]
143
+ sanic = ["sanic"]
144
+ fastapi = ["fastapi", "python-multipart"]
145
+ chalice = ["chalice"]
146
+ cli = ["typer", "pygments", "rich", "libcst", "graphlib_backport"]
147
+ litestar = ["litestar"]
148
+ pyinstrument = ["pyinstrument"]
149
+
150
+ [tool.poetry.scripts]
151
+ strawberry = "strawberry.cli:run"
152
+
153
+
154
+ [tool.pytest.ini_options]
155
+ addopts = "--emoji"
156
+ DJANGO_SETTINGS_MODULE = "tests.django.django_settings"
157
+ testpaths = ["tests/"]
158
+ markers = [
159
+ "aiohttp",
160
+ "asgi",
161
+ "chalice",
162
+ "channels",
163
+ "django_db",
164
+ "django",
165
+ "fastapi",
166
+ "flaky",
167
+ "flask",
168
+ "litestar",
169
+ "pydantic",
170
+ "quart",
171
+ "relay",
172
+ "sanic",
173
+ "starlette",
174
+ ]
175
+ asyncio_mode = "auto"
176
+ filterwarnings = [
177
+ "ignore::DeprecationWarning:strawberry.*.resolver",
178
+ "ignore:LazyType is deprecated:DeprecationWarning",
179
+ "ignore::DeprecationWarning:ddtrace.internal",
180
+ "ignore::DeprecationWarning:django.utils.encoding",
181
+ # ignoring the text instead of the whole warning because we'd
182
+ # get an error when django is not installed
183
+ "ignore:The default value of USE_TZ",
184
+ "ignore::DeprecationWarning:pydantic_openapi_schema.*",
185
+ "ignore::DeprecationWarning:graphql.*",
186
+ "ignore::DeprecationWarning:websockets.*",
187
+ "ignore::DeprecationWarning:pydantic.*",
188
+ "ignore::UserWarning:pydantic.*",
189
+ "ignore::DeprecationWarning:pkg_resources.*",
190
+ ]
191
+
192
+
193
+ [tool.autopub]
194
+ git-username = "Botberry"
195
+ git-email = "bot@strawberry.rocks"
196
+ project-name = "🍓"
197
+ append-github-contributor = true
198
+
199
+ [tool.pyright]
200
+ # include = ["strawberry"]
201
+ exclude = ["**/__pycache__", "**/.venv", "**/.pytest_cache", "**/.nox"]
202
+ reportMissingImports = true
203
+ reportMissingTypeStubs = false
204
+ pythonVersion = "3.9"
205
+ stubPath = ""
206
+
207
+ [tool.ruff]
208
+ line-length = 88
209
+ target-version = "py39"
210
+ fix = true
211
+ exclude = [
212
+ ".bzr",
213
+ ".direnv",
214
+ ".eggs",
215
+ ".git",
216
+ ".hg",
217
+ ".mypy_cache",
218
+ ".nox",
219
+ ".pants.d",
220
+ ".ruff_cache",
221
+ ".svn",
222
+ ".tox",
223
+ ".venv",
224
+ "__pypackages__",
225
+ "_build",
226
+ "buck-out",
227
+ "build",
228
+ "dist",
229
+ "node_modules",
230
+ "venv",
231
+ "tests/*/snapshots",
232
+ ]
233
+ src = ["strawberry", "tests"]
234
+
235
+ [tool.ruff.lint]
236
+ select = ["ALL"]
237
+ ignore = [
238
+ # https://github.com/astral-sh/ruff/pull/4427
239
+ # equivalent to keep-runtime-typing. We might want to enable those
240
+ # after we drop support for Python 3.9
241
+ "UP006",
242
+ "UP007",
243
+
244
+ # we use asserts in tests and to hint mypy
245
+ "S101",
246
+
247
+ # Allow "Any" for annotations. We have too many Any annotations and some
248
+ # are legit. Maybe reconsider in the future, except for tests?
249
+ "ANN401",
250
+
251
+ # Allow our exceptions to have names that don't end in "Error". Maybe refactor
252
+ # in the future? But that would be a breaking change.
253
+ "N818",
254
+
255
+ # Allow "type: ignore" without rule code. Because we support both mypy and
256
+ # pyright, and they have different codes for the same error, we can't properly
257
+ # fix those issues.
258
+ "PGH003",
259
+
260
+ # Variable `T` in function should be lowercase
261
+ # this seems a potential bug or opportunity for improvement in ruff
262
+ "N806",
263
+
264
+ # shadowing builtins
265
+ "A001",
266
+ "A002",
267
+ "A003",
268
+ "A005",
269
+
270
+ # Unused arguments
271
+ "ARG001",
272
+ "ARG002",
273
+ "ARG003",
274
+ "ARG004",
275
+ "ARG005",
276
+
277
+ # Boolean positional arguments
278
+ "FBT001",
279
+ "FBT002",
280
+ "FBT003",
281
+
282
+ # Too many arguments/branches/return statements
283
+ "PLR0913",
284
+ "PLR0912",
285
+ "PLR0911",
286
+
287
+ # Do not force adding _co to covariant typevars
288
+ "PLC0105",
289
+
290
+ # Allow private access to attributes
291
+ "SLF001",
292
+
293
+ # code complexity
294
+ "C901",
295
+
296
+ # Allow todo/fixme/etc comments
297
+ "TD002",
298
+ "TD003",
299
+ "FIX001",
300
+ "FIX002",
301
+
302
+ # We don't want to add "from __future__ mport annotations" everywhere
303
+ "FA100",
304
+
305
+ # Docstrings, maybe to enable later
306
+ "D100",
307
+ "D101",
308
+ "D102",
309
+ "D103",
310
+ "D104",
311
+ "D105",
312
+ "D106",
313
+ "D107",
314
+ "D412",
315
+
316
+ # Allow to define exceptions text in the exception body
317
+ "TRY003",
318
+ "EM101",
319
+ "EM102",
320
+ "EM103",
321
+
322
+ # Allow comparisons with magic numbers
323
+ "PLR2004",
324
+
325
+ # Allow methods to use lru_cache
326
+ "B019",
327
+
328
+ # Don't force if branches to be converted to "or"
329
+ "SIM114",
330
+
331
+ # ruff formatter recommends to disable those, as they conflict with it
332
+ # we don't need to ever enable those.
333
+ "COM812",
334
+ "COM819",
335
+ "D206",
336
+ "E111",
337
+ "E114",
338
+ "E117",
339
+ "E501",
340
+ "ISC001",
341
+ "Q000",
342
+ "Q001",
343
+ "Q002",
344
+ "Q003",
345
+ "W191",
346
+ ]
347
+
348
+ [tool.ruff.lint.per-file-ignores]
349
+ ".github/*" = ["INP001"]
350
+ "federation-compatibility/*" = ["INP001"]
351
+ "strawberry/cli/*" = ["B008"]
352
+ "strawberry/extensions/tracing/__init__.py" = ["TCH004"]
353
+ "strawberry/fastapi/*" = ["B008"]
354
+ "strawberry/annotation.py" = ["RET505"]
355
+ "tests/*" = [
356
+ "ANN001",
357
+ "ANN201",
358
+ "ANN202",
359
+ "ANN204",
360
+ "B008",
361
+ "B018",
362
+ "D",
363
+ "DTZ001",
364
+ "DTZ005",
365
+ "FA102",
366
+ "N805",
367
+ "PLC1901",
368
+ "PLR2004",
369
+ "PLW0603",
370
+ "PT011",
371
+ "RUF012",
372
+ "S105",
373
+ "S106",
374
+ "S603",
375
+ "S607",
376
+ "TCH001",
377
+ "TCH002",
378
+ "TCH003",
379
+ "TRY002",
380
+ ]
381
+
382
+ [tool.ruff.lint.isort]
383
+ known-first-party = ["strawberry"]
384
+ known-third-party = ["django", "graphql"]
385
+ extra-standard-library = ["typing_extensions"]
386
+
387
+ [tool.ruff.format]
388
+ exclude = ['tests/codegen/snapshots/', 'tests/cli/snapshots/']
389
+
390
+ [tool.ruff.lint.pydocstyle]
391
+ convention = "google"
392
+
393
+ [tool.codeflash]
394
+ # All paths are relative to this pyproject.toml's directory.
395
+ module-root = "strawberry"
396
+ tests-root = "tests"
397
+ test-framework = "pytest"
398
+ ignore-paths = []
399
+ formatter-cmds = ["ruff check --exit-zero --fix $file", "ruff format $file"]
400
+
401
+ [build-system]
402
+ requires = ["poetry-core>=1.6"]
403
+ build-backend = "poetry.core.masonry.api"
@@ -11,7 +11,6 @@ from .permission import BasePermission
11
11
  from .scalars import ID
12
12
  from .schema import Schema
13
13
  from .schema_directive import schema_directive
14
- from .streamable import Streamable
15
14
  from .types.arguments import argument
16
15
  from .types.auto import auto
17
16
  from .types.cast import cast
@@ -38,7 +37,6 @@ __all__ = [
38
37
  "Private",
39
38
  "Schema",
40
39
  "Some",
41
- "Streamable",
42
40
  "argument",
43
41
  "asdict",
44
42
  "auto",
@@ -17,7 +17,6 @@ from typing import (
17
17
  )
18
18
  from typing_extensions import Self, get_args, get_origin
19
19
 
20
- from strawberry.streamable import StrawberryStreamable
21
20
  from strawberry.types.base import (
22
21
  StrawberryList,
23
22
  StrawberryMaybe,
@@ -144,8 +143,6 @@ class StrawberryAnnotation:
144
143
 
145
144
  if self._is_lazy_type(evaled_type):
146
145
  return evaled_type
147
- if self._is_streamable(evaled_type, args):
148
- return self.create_list(list[evaled_type])
149
146
  if self._is_list(evaled_type):
150
147
  return self.create_list(evaled_type)
151
148
  if type_of := self._get_maybe_type(evaled_type):
@@ -326,10 +323,6 @@ class StrawberryAnnotation:
326
323
  def _get_maybe_type(cls, annotation: Any) -> type | None:
327
324
  return get_args(annotation)[0] if _annotation_is_maybe(annotation) else None
328
325
 
329
- @classmethod
330
- def _is_streamable(cls, annotation: Any, args: list[Any]) -> bool:
331
- return any(isinstance(arg, StrawberryStreamable) for arg in args)
332
-
333
326
  @classmethod
334
327
  def _is_strawberry_type(cls, evaled_type: Any) -> bool:
335
328
  # Prevent import cycles
@@ -1,13 +1,11 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  from dataclasses import dataclass
4
- from typing import Any, Optional
4
+ from typing import TYPE_CHECKING, Any, Optional
5
5
  from typing_extensions import Literal, TypedDict
6
6
 
7
- from strawberry.schema._graphql_core import (
8
- GraphQLIncrementalExecutionResults,
9
- ResultType,
10
- )
7
+ if TYPE_CHECKING:
8
+ from strawberry.types import ExecutionResult
11
9
 
12
10
 
13
11
  class GraphQLHTTPResponse(TypedDict, total=False):
@@ -16,16 +14,13 @@ class GraphQLHTTPResponse(TypedDict, total=False):
16
14
  extensions: Optional[dict[str, object]]
17
15
 
18
16
 
19
- def process_result(result: ResultType) -> GraphQLHTTPResponse:
20
- if isinstance(result, GraphQLIncrementalExecutionResults):
21
- return result
17
+ def process_result(result: ExecutionResult) -> GraphQLHTTPResponse:
18
+ data: GraphQLHTTPResponse = {"data": result.data}
22
19
 
23
- errors, extensions = result.errors, result.extensions
24
- data: GraphQLHTTPResponse = {
25
- "data": result.data,
26
- **({"errors": [err.formatted for err in errors]} if errors else {}),
27
- **({"extensions": extensions} if extensions else {}),
28
- }
20
+ if result.errors:
21
+ data["errors"] = [err.formatted for err in result.errors]
22
+ if result.extensions:
23
+ data["extensions"] = result.extensions
29
24
 
30
25
  return data
31
26
 
@@ -25,9 +25,6 @@ from strawberry.http import (
25
25
  process_result,
26
26
  )
27
27
  from strawberry.http.ides import GraphQL_IDE
28
- from strawberry.schema._graphql_core import (
29
- GraphQLIncrementalExecutionResults,
30
- )
31
28
  from strawberry.schema.base import BaseSchema
32
29
  from strawberry.schema.exceptions import InvalidOperationTypeError
33
30
  from strawberry.subscriptions import GRAPHQL_TRANSPORT_WS_PROTOCOL, GRAPHQL_WS_PROTOCOL
@@ -261,7 +258,7 @@ class AsyncBaseHTTPView(
261
258
  root_value: Optional[RootValue] = UNSET,
262
259
  ) -> WebSocketResponse: ...
263
260
 
264
- async def run( # noqa: PLR0915
261
+ async def run(
265
262
  self,
266
263
  request: Union[Request, WebSocketRequest],
267
264
  context: Optional[Context] = UNSET,
@@ -352,75 +349,6 @@ class AsyncBaseHTTPView(
352
349
  "Content-Type": "multipart/mixed;boundary=graphql;subscriptionSpec=1.0,application/json",
353
350
  },
354
351
  )
355
- if isinstance(result, GraphQLIncrementalExecutionResults):
356
-
357
- async def stream() -> AsyncGenerator[str, None]:
358
- yield "---"
359
-
360
- response = await self.process_result(request, result.initial_result)
361
-
362
- response["hasNext"] = result.initial_result.has_next
363
- response["pending"] = [
364
- p.formatted for p in result.initial_result.pending
365
- ]
366
- response["extensions"] = result.initial_result.extensions
367
-
368
- yield self.encode_multipart_data(response, "-")
369
-
370
- all_pending = result.initial_result.pending
371
-
372
- async for value in result.subsequent_results:
373
- response = {
374
- "hasNext": value.has_next,
375
- "extensions": value.extensions,
376
- }
377
-
378
- if value.pending:
379
- response["pending"] = [p.formatted for p in value.pending]
380
-
381
- if value.completed:
382
- response["completed"] = [p.formatted for p in value.completed]
383
-
384
- if value.incremental:
385
- incremental = []
386
-
387
- all_pending.extend(value.pending)
388
-
389
- for incremental_value in value.incremental:
390
- pending_value = next(
391
- (
392
- v
393
- for v in all_pending
394
- if v.id == incremental_value.id
395
- ),
396
- None,
397
- )
398
-
399
- assert pending_value
400
-
401
- incremental.append(
402
- {
403
- **incremental_value.formatted,
404
- "path": pending_value.path,
405
- "label": pending_value.label,
406
- }
407
- )
408
-
409
- response["incremental"] = incremental
410
-
411
- yield self.encode_multipart_data(response, "-")
412
-
413
- yield "--\r\n"
414
-
415
- return await self.create_streaming_response(
416
- request,
417
- stream,
418
- sub_response,
419
- headers={
420
- "Transfer-Encoding": "chunked",
421
- "Content-Type": 'multipart/mixed; boundary="-"',
422
- },
423
- )
424
352
 
425
353
  response_data = await self.process_result(request=request, result=result)
426
354
 
@@ -432,16 +360,12 @@ class AsyncBaseHTTPView(
432
360
  )
433
361
 
434
362
  def encode_multipart_data(self, data: Any, separator: str) -> str:
435
- encoded_data = self.encode_json(data)
436
-
437
363
  return "".join(
438
364
  [
439
- "\r\n",
440
- "Content-Type: application/json; charset=utf-8\r\n",
441
- "Content-Length: " + str(len(encoded_data)) + "\r\n",
442
- "\r\n",
443
- encoded_data,
444
- f"\r\n--{separator}",
365
+ f"\r\n--{separator}\r\n",
366
+ "Content-Type: application/json\r\n\r\n",
367
+ self.encode_json(data),
368
+ "\n",
445
369
  ]
446
370
  )
447
371
 
@@ -1,4 +1,7 @@
1
- from typing import Annotated, TypeVar
1
+ import re
2
+ from typing import Annotated, Any, ForwardRef, TypeVar
3
+
4
+ _parent_re = re.compile(r"^(?:strawberry\.)?Parent\[(.*)\]$")
2
5
 
3
6
 
4
7
  class StrawberryParent: ...
@@ -40,4 +43,20 @@ class Query:
40
43
  ```
41
44
  """
42
45
 
43
- __all__ = ["Parent"]
46
+
47
+ def resolve_parent_forward_arg(annotation: Any) -> Any:
48
+ if isinstance(annotation, str):
49
+ str_annotation = annotation
50
+ elif isinstance(annotation, ForwardRef):
51
+ str_annotation = annotation.__forward_arg__
52
+ else:
53
+ # If neither, return the annotation as is
54
+ return annotation
55
+
56
+ if parent_match := _parent_re.match(str_annotation):
57
+ annotation = Parent[ForwardRef(parent_match.group(1))] # type: ignore[misc]
58
+
59
+ return annotation
60
+
61
+
62
+ __all__ = ["Parent", "StrawberryParent", "resolve_parent_forward_arg"]
@@ -561,9 +561,9 @@ def print_schema_definition(
561
561
  def print_directive(
562
562
  directive: GraphQLDirective, *, schema: BaseSchema
563
563
  ) -> Optional[str]:
564
- strawberry_directive = directive.extensions.get("strawberry-definition")
564
+ strawberry_directive = directive.extensions["strawberry-definition"]
565
565
 
566
- if strawberry_directive is None or (
566
+ if (
567
567
  isinstance(strawberry_directive, StrawberrySchemaDirective)
568
568
  and not strawberry_directive.print_definition
569
569
  ):
@@ -621,14 +621,6 @@ def print_schema(schema: BaseSchema) -> str:
621
621
  if (printed_directive := print_directive(directive, schema=schema)) is not None
622
622
  ]
623
623
 
624
- if schema.config.enable_experimental_incremental_execution:
625
- directives.append(
626
- "directive @defer(if: Boolean, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT"
627
- )
628
- directives.append(
629
- "directive @stream(if: Boolean, label: String, initialCount: Int = 0) on FIELD"
630
- )
631
-
632
624
  def _name_getter(type_: Any) -> str:
633
625
  if hasattr(type_, "name"):
634
626
  return type_.name
@@ -6,6 +6,8 @@ from typing import TYPE_CHECKING, Any, NewType, Union
6
6
  from strawberry.types.scalar import scalar
7
7
 
8
8
  if TYPE_CHECKING:
9
+ from collections.abc import Mapping
10
+
9
11
  from strawberry.types.scalar import ScalarDefinition, ScalarWrapper
10
12
 
11
13
 
@@ -57,7 +59,7 @@ Base64 = scalar(
57
59
 
58
60
  def is_scalar(
59
61
  annotation: Any,
60
- scalar_registry: dict[object, Union[ScalarWrapper, ScalarDefinition]],
62
+ scalar_registry: Mapping[object, Union[ScalarWrapper, ScalarDefinition]],
61
63
  ) -> bool:
62
64
  if annotation in scalar_registry:
63
65
  return True