strawberry-graphql 0.262.5__tar.gz → 0.262.7.dev1743345593__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 (234) hide show
  1. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/PKG-INFO +1 -1
  2. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/pyproject.toml +2 -1
  3. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/__init__.py +3 -1
  4. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/annotation.py +10 -1
  5. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/channels/handlers/http_handler.py +4 -2
  6. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/object_type.py +12 -1
  7. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/unset.py +23 -1
  8. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/LICENSE +0 -0
  9. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/README.md +0 -0
  10. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/__main__.py +0 -0
  11. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/aiohttp/__init__.py +0 -0
  12. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/aiohttp/test/__init__.py +0 -0
  13. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/aiohttp/test/client.py +0 -0
  14. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/aiohttp/views.py +0 -0
  15. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/asgi/__init__.py +0 -0
  16. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/asgi/test/__init__.py +0 -0
  17. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/asgi/test/client.py +0 -0
  18. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/chalice/__init__.py +0 -0
  19. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/chalice/views.py +0 -0
  20. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/channels/__init__.py +0 -0
  21. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/channels/handlers/__init__.py +0 -0
  22. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/channels/handlers/base.py +0 -0
  23. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/channels/handlers/ws_handler.py +0 -0
  24. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/channels/router.py +0 -0
  25. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/channels/testing.py +0 -0
  26. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/cli/__init__.py +0 -0
  27. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/cli/app.py +0 -0
  28. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/cli/commands/__init__.py +0 -0
  29. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/cli/commands/codegen.py +0 -0
  30. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/cli/commands/export_schema.py +0 -0
  31. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/cli/commands/schema_codegen.py +0 -0
  32. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/cli/commands/server.py +0 -0
  33. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/cli/commands/upgrade/__init__.py +0 -0
  34. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/cli/commands/upgrade/_fake_progress.py +0 -0
  35. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/cli/commands/upgrade/_run_codemod.py +0 -0
  36. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/cli/constants.py +0 -0
  37. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/cli/debug_server.py +0 -0
  38. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/cli/utils/__init__.py +0 -0
  39. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/cli/utils/load_schema.py +0 -0
  40. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/codegen/__init__.py +0 -0
  41. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/codegen/exceptions.py +0 -0
  42. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/codegen/plugins/__init__.py +0 -0
  43. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/codegen/plugins/print_operation.py +0 -0
  44. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/codegen/plugins/python.py +0 -0
  45. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/codegen/plugins/typescript.py +0 -0
  46. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/codegen/query_codegen.py +0 -0
  47. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/codegen/types.py +0 -0
  48. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/codemods/__init__.py +0 -0
  49. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/codemods/annotated_unions.py +0 -0
  50. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/codemods/update_imports.py +0 -0
  51. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/dataloader.py +0 -0
  52. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/directive.py +0 -0
  53. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/django/__init__.py +0 -0
  54. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/django/apps.py +0 -0
  55. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/django/context.py +0 -0
  56. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/django/test/__init__.py +0 -0
  57. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/django/test/client.py +0 -0
  58. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/django/views.py +0 -0
  59. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/__init__.py +0 -0
  60. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/conflicting_arguments.py +0 -0
  61. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/duplicated_type_name.py +0 -0
  62. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/exception.py +0 -0
  63. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/exception_source.py +0 -0
  64. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/handler.py +0 -0
  65. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/invalid_argument_type.py +0 -0
  66. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/invalid_union_type.py +0 -0
  67. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/missing_arguments_annotations.py +0 -0
  68. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/missing_dependencies.py +0 -0
  69. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/missing_field_annotation.py +0 -0
  70. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/missing_return_annotation.py +0 -0
  71. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/object_is_not_a_class.py +0 -0
  72. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/object_is_not_an_enum.py +0 -0
  73. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/permission_fail_silently_requires_optional.py +0 -0
  74. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/private_strawberry_field.py +0 -0
  75. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/scalar_already_registered.py +0 -0
  76. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/syntax.py +0 -0
  77. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/unresolved_field_type.py +0 -0
  78. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/utils/__init__.py +0 -0
  79. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/exceptions/utils/source_finder.py +0 -0
  80. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/experimental/__init__.py +0 -0
  81. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/experimental/pydantic/__init__.py +0 -0
  82. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/experimental/pydantic/_compat.py +0 -0
  83. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/experimental/pydantic/conversion.py +0 -0
  84. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/experimental/pydantic/conversion_types.py +0 -0
  85. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/experimental/pydantic/error_type.py +0 -0
  86. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/experimental/pydantic/exceptions.py +0 -0
  87. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/experimental/pydantic/fields.py +0 -0
  88. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/experimental/pydantic/object_type.py +0 -0
  89. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/experimental/pydantic/utils.py +0 -0
  90. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/ext/LICENSE +0 -0
  91. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/ext/__init__.py +0 -0
  92. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/ext/dataclasses/LICENSE +0 -0
  93. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/ext/dataclasses/__init__.py +0 -0
  94. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/ext/dataclasses/dataclasses.py +0 -0
  95. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/ext/mypy_plugin.py +0 -0
  96. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/__init__.py +0 -0
  97. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/add_validation_rules.py +0 -0
  98. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/base_extension.py +0 -0
  99. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/context.py +0 -0
  100. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/directives.py +0 -0
  101. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/disable_validation.py +0 -0
  102. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/field_extension.py +0 -0
  103. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/mask_errors.py +0 -0
  104. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/max_aliases.py +0 -0
  105. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/max_tokens.py +0 -0
  106. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/parser_cache.py +0 -0
  107. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/pyinstrument.py +0 -0
  108. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/query_depth_limiter.py +0 -0
  109. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/runner.py +0 -0
  110. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/tracing/__init__.py +0 -0
  111. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/tracing/apollo.py +0 -0
  112. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/tracing/datadog.py +0 -0
  113. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/tracing/opentelemetry.py +0 -0
  114. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/tracing/utils.py +0 -0
  115. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/utils.py +0 -0
  116. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/extensions/validation_cache.py +0 -0
  117. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/fastapi/__init__.py +0 -0
  118. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/fastapi/context.py +0 -0
  119. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/fastapi/router.py +0 -0
  120. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/federation/__init__.py +0 -0
  121. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/federation/argument.py +0 -0
  122. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/federation/enum.py +0 -0
  123. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/federation/field.py +0 -0
  124. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/federation/mutation.py +0 -0
  125. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/federation/object_type.py +0 -0
  126. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/federation/scalar.py +0 -0
  127. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/federation/schema.py +0 -0
  128. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/federation/schema_directive.py +0 -0
  129. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/federation/schema_directives.py +0 -0
  130. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/federation/types.py +0 -0
  131. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/federation/union.py +0 -0
  132. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/field_extensions/__init__.py +0 -0
  133. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/field_extensions/input_mutation.py +0 -0
  134. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/file_uploads/__init__.py +0 -0
  135. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/file_uploads/scalars.py +0 -0
  136. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/file_uploads/utils.py +0 -0
  137. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/flask/__init__.py +0 -0
  138. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/flask/views.py +0 -0
  139. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/http/__init__.py +0 -0
  140. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/http/async_base_view.py +0 -0
  141. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/http/base.py +0 -0
  142. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/http/exceptions.py +0 -0
  143. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/http/ides.py +0 -0
  144. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/http/parse_content_type.py +0 -0
  145. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/http/sync_base_view.py +0 -0
  146. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/http/temporal_response.py +0 -0
  147. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/http/types.py +0 -0
  148. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/http/typevars.py +0 -0
  149. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/litestar/__init__.py +0 -0
  150. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/litestar/controller.py +0 -0
  151. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/parent.py +0 -0
  152. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/permission.py +0 -0
  153. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/printer/__init__.py +0 -0
  154. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/printer/ast_from_value.py +0 -0
  155. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/printer/printer.py +0 -0
  156. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/py.typed +0 -0
  157. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/quart/__init__.py +0 -0
  158. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/quart/views.py +0 -0
  159. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/relay/__init__.py +0 -0
  160. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/relay/exceptions.py +0 -0
  161. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/relay/fields.py +0 -0
  162. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/relay/types.py +0 -0
  163. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/relay/utils.py +0 -0
  164. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/resolvers.py +0 -0
  165. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/sanic/__init__.py +0 -0
  166. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/sanic/context.py +0 -0
  167. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/sanic/utils.py +0 -0
  168. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/sanic/views.py +0 -0
  169. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/scalars.py +0 -0
  170. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/schema/__init__.py +0 -0
  171. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/schema/base.py +0 -0
  172. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/schema/compat.py +0 -0
  173. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/schema/config.py +0 -0
  174. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/schema/exceptions.py +0 -0
  175. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/schema/name_converter.py +0 -0
  176. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/schema/schema.py +0 -0
  177. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/schema/schema_converter.py +0 -0
  178. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/schema/types/__init__.py +0 -0
  179. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/schema/types/base_scalars.py +0 -0
  180. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/schema/types/concrete_type.py +0 -0
  181. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/schema/types/scalar.py +0 -0
  182. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/schema/validation_rules/__init__.py +0 -0
  183. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/schema/validation_rules/one_of.py +0 -0
  184. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/schema_codegen/__init__.py +0 -0
  185. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/schema_directive.py +0 -0
  186. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/schema_directives.py +0 -0
  187. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/static/apollo-sandbox.html +0 -0
  188. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/static/graphiql.html +0 -0
  189. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/static/pathfinder.html +0 -0
  190. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/subscriptions/__init__.py +0 -0
  191. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/subscriptions/protocols/__init__.py +0 -0
  192. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/subscriptions/protocols/graphql_transport_ws/__init__.py +0 -0
  193. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/subscriptions/protocols/graphql_transport_ws/handlers.py +0 -0
  194. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/subscriptions/protocols/graphql_transport_ws/types.py +0 -0
  195. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/subscriptions/protocols/graphql_ws/__init__.py +0 -0
  196. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/subscriptions/protocols/graphql_ws/handlers.py +0 -0
  197. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/subscriptions/protocols/graphql_ws/types.py +0 -0
  198. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/test/__init__.py +0 -0
  199. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/test/client.py +0 -0
  200. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/tools/__init__.py +0 -0
  201. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/tools/create_type.py +0 -0
  202. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/tools/merge_types.py +0 -0
  203. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/__init__.py +0 -0
  204. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/arguments.py +0 -0
  205. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/auto.py +0 -0
  206. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/base.py +0 -0
  207. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/cast.py +0 -0
  208. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/enum.py +0 -0
  209. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/execution.py +0 -0
  210. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/field.py +0 -0
  211. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/fields/__init__.py +0 -0
  212. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/fields/resolver.py +0 -0
  213. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/graphql.py +0 -0
  214. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/info.py +0 -0
  215. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/lazy_type.py +0 -0
  216. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/mutation.py +0 -0
  217. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/nodes.py +0 -0
  218. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/private.py +0 -0
  219. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/scalar.py +0 -0
  220. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/type_resolver.py +0 -0
  221. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/types/union.py +0 -0
  222. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/utils/__init__.py +0 -0
  223. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/utils/aio.py +0 -0
  224. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/utils/await_maybe.py +0 -0
  225. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/utils/dataclasses.py +0 -0
  226. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/utils/debug.py +0 -0
  227. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/utils/deprecations.py +0 -0
  228. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/utils/graphql_lexer.py +0 -0
  229. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/utils/importer.py +0 -0
  230. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/utils/inspect.py +0 -0
  231. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/utils/logging.py +0 -0
  232. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/utils/operation.py +0 -0
  233. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/utils/str_converters.py +0 -0
  234. {strawberry_graphql-0.262.5 → strawberry_graphql-0.262.7.dev1743345593}/strawberry/utils/typing.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: strawberry-graphql
3
- Version: 0.262.5
3
+ Version: 0.262.7.dev1743345593
4
4
  Summary: A library for creating GraphQL APIs
5
5
  License: MIT
6
6
  Keywords: graphql,api,rest,starlette,async
@@ -1,7 +1,7 @@
1
1
  [tool.poetry]
2
2
  name = "strawberry-graphql"
3
3
  packages = [ { include = "strawberry" } ]
4
- version = "0.262.5"
4
+ version = "0.262.7.dev.1743345593"
5
5
  description = "A library for creating GraphQL APIs"
6
6
  authors = ["Patrick Arminio <patrick.arminio@gmail.com>"]
7
7
  license = "MIT"
@@ -56,6 +56,7 @@ rich = {version = ">=12.0.0", optional = true}
56
56
  pyinstrument = {version = ">=4.0.0", optional = true}
57
57
 
58
58
  [tool.poetry.group.dev.dependencies]
59
+ ruff = "^0.11.1"
59
60
  asgiref = "^3.2"
60
61
  email-validator = {version = ">=1.1.3,<3.0.0", optional = false}
61
62
  freezegun = "^1.2.1"
@@ -23,7 +23,7 @@ from .types.object_type import asdict, input, interface, type # noqa: A004
23
23
  from .types.private import Private
24
24
  from .types.scalar import scalar
25
25
  from .types.union import union
26
- from .types.unset import UNSET
26
+ from .types.unset import UNSET, Maybe, exists
27
27
 
28
28
  __all__ = [
29
29
  "ID",
@@ -31,6 +31,7 @@ __all__ = [
31
31
  "BasePermission",
32
32
  "Info",
33
33
  "LazyType",
34
+ "Maybe",
34
35
  "Parent",
35
36
  "Private",
36
37
  "Schema",
@@ -42,6 +43,7 @@ __all__ = [
42
43
  "directive_field",
43
44
  "enum",
44
45
  "enum_value",
46
+ "exists",
45
47
  "experimental",
46
48
  "federation",
47
49
  "field",
@@ -30,7 +30,7 @@ from strawberry.types.enum import enum as strawberry_enum
30
30
  from strawberry.types.lazy_type import LazyType
31
31
  from strawberry.types.private import is_private
32
32
  from strawberry.types.scalar import ScalarDefinition
33
- from strawberry.types.unset import UNSET
33
+ from strawberry.types.unset import UNSET, _annot_is_maybe
34
34
  from strawberry.utils.typing import eval_type, is_generic, is_type_var
35
35
 
36
36
  if TYPE_CHECKING:
@@ -143,6 +143,11 @@ class StrawberryAnnotation:
143
143
  return evaled_type
144
144
  if self._is_list(evaled_type):
145
145
  return self.create_list(evaled_type)
146
+ if type_of := self._get_maybe_type(evaled_type):
147
+ return StrawberryAnnotation(
148
+ annotation=Union[type_of, None],
149
+ namespace=self.namespace,
150
+ ).resolve()
146
151
 
147
152
  if self._is_graphql_generic(evaled_type):
148
153
  if any(is_type_var(type_) for type_ in get_args(evaled_type)):
@@ -310,6 +315,10 @@ class StrawberryAnnotation:
310
315
  or is_list
311
316
  )
312
317
 
318
+ @classmethod
319
+ def _get_maybe_type(cls, annotation: Any) -> type | None:
320
+ return get_args(annotation)[0] if _annot_is_maybe(annotation) else None
321
+
313
322
  @classmethod
314
323
  def _is_strawberry_type(cls, evaled_type: Any) -> bool:
315
324
  # Prevent import cycles
@@ -293,7 +293,8 @@ class GraphQLHTTPConsumer(
293
293
 
294
294
  async def render_graphql_ide(self, request: ChannelsRequest) -> ChannelsResponse:
295
295
  return ChannelsResponse(
296
- content=self.graphql_ide_html.encode(), content_type="text/html"
296
+ content=self.graphql_ide_html.encode(),
297
+ content_type="text/html; charset=utf-8",
297
298
  )
298
299
 
299
300
  def is_websocket_request(
@@ -348,7 +349,8 @@ class SyncGraphQLHTTPConsumer(
348
349
 
349
350
  def render_graphql_ide(self, request: ChannelsRequest) -> ChannelsResponse:
350
351
  return ChannelsResponse(
351
- content=self.graphql_ide_html.encode(), content_type="text/html"
352
+ content=self.graphql_ide_html.encode(),
353
+ content_type="text/html; charset=utf-8",
352
354
  )
353
355
 
354
356
  # Sync channels is actually async, but it uses database_sync_to_async to call
@@ -20,6 +20,7 @@ from strawberry.exceptions import (
20
20
  ObjectIsNotClassError,
21
21
  )
22
22
  from strawberry.types.base import get_object_definition
23
+ from strawberry.types.unset import UNSET, _annot_is_maybe
23
24
  from strawberry.utils.deprecations import DEPRECATION_MESSAGES, DeprecatedDescriptor
24
25
  from strawberry.utils.str_converters import to_camel_case
25
26
 
@@ -122,6 +123,15 @@ def _wrap_dataclass(cls: builtins.type[T]) -> builtins.type[T]:
122
123
  return dclass
123
124
 
124
125
 
126
+ def _inject_default_for_maybe_annotations(
127
+ cls: builtins.type[T], annotations: dict[str, Any]
128
+ ) -> None:
129
+ """Inject `= UNSET` for fields with `Maybe` annotations and no default value."""
130
+ for name, annot in annotations.copy().items():
131
+ if _annot_is_maybe(annot) and not getattr(cls, name, None):
132
+ setattr(cls, name, UNSET)
133
+
134
+
125
135
  def _process_type(
126
136
  cls: T,
127
137
  *,
@@ -286,7 +296,8 @@ def type(
286
296
 
287
297
  if field and isinstance(field, StrawberryField) and field.type_annotation:
288
298
  original_type_annotations[field_name] = field.type_annotation.annotation
289
-
299
+ if is_input:
300
+ _inject_default_for_maybe_annotations(cls, annotations)
290
301
  wrapped = _wrap_dataclass(cls)
291
302
 
292
303
  return _process_type( # type: ignore
@@ -1,5 +1,7 @@
1
+ import typing
1
2
  import warnings
2
- from typing import Any, Optional
3
+ from typing import TYPE_CHECKING, Any, Generic, Optional, TypeVar, Union
4
+ from typing_extensions import TypeAlias, TypeGuard
3
5
 
4
6
  DEPRECATED_NAMES: dict[str, str] = {
5
7
  "is_unset": "`is_unset` is deprecated use `value is UNSET` instead",
@@ -61,6 +63,26 @@ def __getattr__(name: str) -> Any:
61
63
  raise AttributeError(f"module {__name__} has no attribute {name}")
62
64
 
63
65
 
66
+ NOTHING = UnsetType()
67
+ """A special value that can be used to represent an unset value in a field or argument."""
68
+
69
+ T = TypeVar("T")
70
+
71
+ if TYPE_CHECKING:
72
+ Maybe: TypeAlias = Union[T, UnsetType, None]
73
+ else:
74
+ # we do this trick so we can inspect that at runtime
75
+ class Maybe(Generic[T]): ...
76
+
77
+
78
+ def _annot_is_maybe(annotation: Any) -> bool:
79
+ return (orig := typing.get_origin(annotation)) and orig is Maybe
80
+
81
+
82
+ def exists(value: Union[T, UnsetType, None]) -> TypeGuard[Union[T, None]]:
83
+ return value is not UNSET or not isinstance(value, UnsetType)
84
+
85
+
64
86
  __all__ = [
65
87
  "UNSET",
66
88
  ]