strawberry-graphql 0.247.2__tar.gz → 0.248.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.
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/PKG-INFO +1 -1
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/pyproject.toml +1 -1
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/channels/testing.py +32 -19
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/cli/commands/codegen.py +9 -5
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/experimental/pydantic/object_type.py +2 -2
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/subscriptions/protocols/graphql_ws/handlers.py +53 -51
- strawberry_graphql-0.248.1/strawberry/subscriptions/protocols/graphql_ws/types.py +96 -0
- strawberry_graphql-0.248.1/strawberry/types/fields/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/utils/typing.py +6 -1
- strawberry_graphql-0.247.2/strawberry/subscriptions/protocols/graphql_ws/__init__.py +0 -24
- strawberry_graphql-0.247.2/strawberry/subscriptions/protocols/graphql_ws/types.py +0 -52
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/LICENSE +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/README.md +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/__main__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/aiohttp/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/aiohttp/test/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/aiohttp/test/client.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/aiohttp/views.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/annotation.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/asgi/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/asgi/test/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/asgi/test/client.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/chalice/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/chalice/views.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/channels/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/channels/handlers/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/channels/handlers/base.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/channels/handlers/http_handler.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/channels/handlers/ws_handler.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/channels/router.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/cli/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/cli/app.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/cli/commands/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/cli/commands/export_schema.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/cli/commands/schema_codegen.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/cli/commands/server.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/cli/commands/upgrade/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/cli/commands/upgrade/_fake_progress.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/cli/commands/upgrade/_run_codemod.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/cli/constants.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/cli/debug_server.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/cli/utils/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/cli/utils/load_schema.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/codegen/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/codegen/exceptions.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/codegen/plugins/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/codegen/plugins/print_operation.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/codegen/plugins/python.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/codegen/plugins/typescript.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/codegen/query_codegen.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/codegen/types.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/codemods/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/codemods/annotated_unions.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/codemods/update_imports.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/dataloader.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/directive.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/django/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/django/apps.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/django/context.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/django/test/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/django/test/client.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/django/views.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/conflicting_arguments.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/duplicated_type_name.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/exception.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/exception_source.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/handler.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/invalid_argument_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/invalid_union_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/missing_arguments_annotations.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/missing_dependencies.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/missing_field_annotation.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/missing_return_annotation.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/object_is_not_a_class.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/object_is_not_an_enum.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/permission_fail_silently_requires_optional.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/private_strawberry_field.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/scalar_already_registered.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/syntax.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/unresolved_field_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/utils/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/exceptions/utils/source_finder.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/experimental/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/experimental/pydantic/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/experimental/pydantic/_compat.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/experimental/pydantic/conversion.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/experimental/pydantic/conversion_types.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/experimental/pydantic/error_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/experimental/pydantic/exceptions.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/experimental/pydantic/fields.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/experimental/pydantic/utils.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/ext/LICENSE +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/ext/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/ext/dataclasses/LICENSE +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/ext/dataclasses/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/ext/dataclasses/dataclasses.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/ext/mypy_plugin.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/add_validation_rules.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/base_extension.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/context.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/directives.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/disable_validation.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/field_extension.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/mask_errors.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/max_aliases.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/max_tokens.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/parser_cache.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/pyinstrument.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/query_depth_limiter.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/runner.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/tracing/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/tracing/apollo.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/tracing/datadog.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/tracing/opentelemetry.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/tracing/sentry.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/tracing/utils.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/utils.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/extensions/validation_cache.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/fastapi/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/fastapi/context.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/fastapi/router.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/federation/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/federation/argument.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/federation/enum.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/federation/field.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/federation/mutation.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/federation/object_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/federation/scalar.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/federation/schema.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/federation/schema_directive.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/federation/schema_directives.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/federation/types.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/federation/union.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/field_extensions/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/field_extensions/input_mutation.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/file_uploads/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/file_uploads/scalars.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/file_uploads/utils.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/flask/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/flask/views.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/http/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/http/async_base_view.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/http/base.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/http/exceptions.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/http/ides.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/http/parse_content_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/http/sync_base_view.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/http/temporal_response.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/http/types.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/http/typevars.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/litestar/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/litestar/controller.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/parent.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/permission.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/printer/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/printer/ast_from_value.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/printer/printer.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/py.typed +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/quart/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/quart/views.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/relay/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/relay/exceptions.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/relay/fields.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/relay/types.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/relay/utils.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/resolvers.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/sanic/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/sanic/context.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/sanic/utils.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/sanic/views.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/scalars.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/schema/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/schema/base.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/schema/compat.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/schema/config.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/schema/exceptions.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/schema/execute.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/schema/name_converter.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/schema/schema.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/schema/schema_converter.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/schema/subscribe.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/schema/types/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/schema/types/base_scalars.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/schema/types/concrete_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/schema/types/scalar.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/schema/validation_rules/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/schema/validation_rules/one_of.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/schema_codegen/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/schema_directive.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/schema_directives.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/static/apollo-sandbox.html +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/static/graphiql.html +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/static/pathfinder.html +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/subscriptions/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/subscriptions/protocols/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/subscriptions/protocols/graphql_transport_ws/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/subscriptions/protocols/graphql_transport_ws/handlers.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/subscriptions/protocols/graphql_transport_ws/types.py +0 -0
- {strawberry_graphql-0.247.2/strawberry/types/fields → strawberry_graphql-0.248.1/strawberry/subscriptions/protocols/graphql_ws}/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/test/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/test/client.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/tools/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/tools/create_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/tools/merge_types.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/types/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/types/arguments.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/types/auto.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/types/base.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/types/enum.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/types/execution.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/types/field.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/types/fields/resolver.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/types/graphql.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/types/info.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/types/lazy_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/types/mutation.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/types/nodes.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/types/object_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/types/private.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/types/scalar.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/types/type_resolver.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/types/union.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/types/unset.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/utils/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/utils/aio.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/utils/await_maybe.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/utils/dataclasses.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/utils/debug.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/utils/deprecations.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/utils/graphql_lexer.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/utils/importer.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/utils/inspect.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/utils/logging.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/utils/operation.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/utils/str_converters.py +0 -0
@@ -1,6 +1,5 @@
|
|
1
1
|
from __future__ import annotations
|
2
2
|
|
3
|
-
import dataclasses
|
4
3
|
import uuid
|
5
4
|
from typing import (
|
6
5
|
TYPE_CHECKING,
|
@@ -26,10 +25,14 @@ from strawberry.subscriptions.protocols.graphql_transport_ws.types import (
|
|
26
25
|
SubscribeMessage,
|
27
26
|
SubscribeMessagePayload,
|
28
27
|
)
|
29
|
-
from strawberry.subscriptions.protocols.graphql_ws import (
|
30
|
-
|
31
|
-
|
32
|
-
|
28
|
+
from strawberry.subscriptions.protocols.graphql_ws.types import (
|
29
|
+
ConnectionAckMessage as GraphQLWSConnectionAckMessage,
|
30
|
+
)
|
31
|
+
from strawberry.subscriptions.protocols.graphql_ws.types import (
|
32
|
+
ConnectionInitMessage as GraphQLWSConnectionInitMessage,
|
33
|
+
)
|
34
|
+
from strawberry.subscriptions.protocols.graphql_ws.types import (
|
35
|
+
StartMessage as GraphQLWSStartMessage,
|
33
36
|
)
|
34
37
|
from strawberry.types import ExecutionResult
|
35
38
|
|
@@ -108,13 +111,17 @@ class GraphQLWebsocketCommunicator(WebsocketCommunicator):
|
|
108
111
|
await self.send_json_to(
|
109
112
|
ConnectionInitMessage(payload=self.connection_params).as_dict()
|
110
113
|
)
|
111
|
-
|
112
|
-
assert
|
114
|
+
graphql_transport_ws_response = await self.receive_json_from()
|
115
|
+
assert graphql_transport_ws_response == ConnectionAckMessage().as_dict()
|
113
116
|
else:
|
114
117
|
assert res == (True, GRAPHQL_WS_PROTOCOL)
|
115
|
-
await self.send_json_to(
|
116
|
-
|
117
|
-
|
118
|
+
await self.send_json_to(
|
119
|
+
GraphQLWSConnectionInitMessage({"type": "connection_init"})
|
120
|
+
)
|
121
|
+
graphql_ws_response: GraphQLWSConnectionAckMessage = (
|
122
|
+
await self.receive_json_from()
|
123
|
+
)
|
124
|
+
assert graphql_ws_response["type"] == "connection_ack"
|
118
125
|
|
119
126
|
# Actual `ExecutionResult`` objects are not available client-side, since they
|
120
127
|
# get transformed into `FormattedExecutionResult` on the wire, but we attempt
|
@@ -123,22 +130,28 @@ class GraphQLWebsocketCommunicator(WebsocketCommunicator):
|
|
123
130
|
self, query: str, variables: Optional[Dict] = None
|
124
131
|
) -> Union[ExecutionResult, AsyncIterator[ExecutionResult]]:
|
125
132
|
id_ = uuid.uuid4().hex
|
126
|
-
|
133
|
+
|
127
134
|
if self.protocol == GRAPHQL_TRANSPORT_WS_PROTOCOL:
|
128
135
|
await self.send_json_to(
|
129
136
|
SubscribeMessage(
|
130
137
|
id=id_,
|
131
|
-
payload=
|
138
|
+
payload=SubscribeMessagePayload(query=query, variables=variables),
|
132
139
|
).as_dict()
|
133
140
|
)
|
134
141
|
else:
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
"
|
140
|
-
}
|
141
|
-
|
142
|
+
start_message: GraphQLWSStartMessage = {
|
143
|
+
"type": "start",
|
144
|
+
"id": id_,
|
145
|
+
"payload": {
|
146
|
+
"query": query,
|
147
|
+
},
|
148
|
+
}
|
149
|
+
|
150
|
+
if variables is not None:
|
151
|
+
start_message["payload"]["variables"] = variables
|
152
|
+
|
153
|
+
await self.send_json_to(start_message)
|
154
|
+
|
142
155
|
while True:
|
143
156
|
response = await self.receive_json_from(timeout=5)
|
144
157
|
message_type = response["type"]
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/cli/commands/codegen.py
RENAMED
@@ -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(
|
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(
|
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
|
@@ -11,24 +11,18 @@ from typing import (
|
|
11
11
|
)
|
12
12
|
|
13
13
|
from strawberry.http.exceptions import NonTextMessageReceived, WebSocketDisconnected
|
14
|
-
from strawberry.subscriptions.protocols.graphql_ws import (
|
15
|
-
GQL_COMPLETE,
|
16
|
-
GQL_CONNECTION_ACK,
|
17
|
-
GQL_CONNECTION_ERROR,
|
18
|
-
GQL_CONNECTION_INIT,
|
19
|
-
GQL_CONNECTION_KEEP_ALIVE,
|
20
|
-
GQL_CONNECTION_TERMINATE,
|
21
|
-
GQL_DATA,
|
22
|
-
GQL_ERROR,
|
23
|
-
GQL_START,
|
24
|
-
GQL_STOP,
|
25
|
-
)
|
26
14
|
from strawberry.subscriptions.protocols.graphql_ws.types import (
|
27
|
-
|
28
|
-
|
15
|
+
CompleteMessage,
|
16
|
+
ConnectionAckMessage,
|
17
|
+
ConnectionErrorMessage,
|
18
|
+
ConnectionInitMessage,
|
19
|
+
ConnectionKeepAliveMessage,
|
20
|
+
ConnectionTerminateMessage,
|
21
|
+
DataMessage,
|
22
|
+
ErrorMessage,
|
29
23
|
OperationMessage,
|
30
|
-
|
31
|
-
|
24
|
+
StartMessage,
|
25
|
+
StopMessage,
|
32
26
|
)
|
33
27
|
from strawberry.types.execution import ExecutionResult, PreExecutionError
|
34
28
|
from strawberry.utils.debug import pretty_print_graphql_operation
|
@@ -59,7 +53,7 @@ class BaseGraphQLWSHandler:
|
|
59
53
|
self.keep_alive_task: Optional[asyncio.Task] = None
|
60
54
|
self.subscriptions: Dict[str, AsyncGenerator] = {}
|
61
55
|
self.tasks: Dict[str, asyncio.Task] = {}
|
62
|
-
self.connection_params: Optional[
|
56
|
+
self.connection_params: Optional[Dict[str, object]] = None
|
63
57
|
|
64
58
|
async def handle(self) -> None:
|
65
59
|
try:
|
@@ -87,41 +81,40 @@ class BaseGraphQLWSHandler:
|
|
87
81
|
self,
|
88
82
|
message: OperationMessage,
|
89
83
|
) -> None:
|
90
|
-
|
91
|
-
|
92
|
-
if message_type == GQL_CONNECTION_INIT:
|
84
|
+
if message["type"] == "connection_init":
|
93
85
|
await self.handle_connection_init(message)
|
94
|
-
elif
|
86
|
+
elif message["type"] == "connection_terminate":
|
95
87
|
await self.handle_connection_terminate(message)
|
96
|
-
elif
|
88
|
+
elif message["type"] == "start":
|
97
89
|
await self.handle_start(message)
|
98
|
-
elif
|
90
|
+
elif message["type"] == "stop":
|
99
91
|
await self.handle_stop(message)
|
100
92
|
|
101
|
-
async def handle_connection_init(self, message:
|
93
|
+
async def handle_connection_init(self, message: ConnectionInitMessage) -> None:
|
102
94
|
payload = message.get("payload")
|
103
95
|
if payload is not None and not isinstance(payload, dict):
|
104
|
-
error_message:
|
96
|
+
error_message: ConnectionErrorMessage = {"type": "connection_error"}
|
105
97
|
await self.websocket.send_json(error_message)
|
106
98
|
await self.websocket.close(code=1000, reason="")
|
107
99
|
return
|
108
100
|
|
109
|
-
payload = cast(Optional["ConnectionInitPayload"], payload)
|
110
101
|
self.connection_params = payload
|
111
102
|
|
112
|
-
|
113
|
-
await self.websocket.send_json(
|
103
|
+
connection_ack_message: ConnectionAckMessage = {"type": "connection_ack"}
|
104
|
+
await self.websocket.send_json(connection_ack_message)
|
114
105
|
|
115
106
|
if self.keep_alive:
|
116
107
|
keep_alive_handler = self.handle_keep_alive()
|
117
108
|
self.keep_alive_task = asyncio.create_task(keep_alive_handler)
|
118
109
|
|
119
|
-
async def handle_connection_terminate(
|
110
|
+
async def handle_connection_terminate(
|
111
|
+
self, message: ConnectionTerminateMessage
|
112
|
+
) -> None:
|
120
113
|
await self.websocket.close(code=1000, reason="")
|
121
114
|
|
122
|
-
async def handle_start(self, message:
|
115
|
+
async def handle_start(self, message: StartMessage) -> None:
|
123
116
|
operation_id = message["id"]
|
124
|
-
payload =
|
117
|
+
payload = message["payload"]
|
125
118
|
query = payload["query"]
|
126
119
|
operation_name = payload.get("operationName")
|
127
120
|
variables = payload.get("variables")
|
@@ -139,14 +132,14 @@ class BaseGraphQLWSHandler:
|
|
139
132
|
)
|
140
133
|
self.tasks[operation_id] = asyncio.create_task(result_handler)
|
141
134
|
|
142
|
-
async def handle_stop(self, message:
|
135
|
+
async def handle_stop(self, message: StopMessage) -> None:
|
143
136
|
operation_id = message["id"]
|
144
137
|
await self.cleanup_operation(operation_id)
|
145
138
|
|
146
139
|
async def handle_keep_alive(self) -> None:
|
147
140
|
assert self.keep_alive_interval
|
148
141
|
while True:
|
149
|
-
data:
|
142
|
+
data: ConnectionKeepAliveMessage = {"type": "ka"}
|
150
143
|
await self.websocket.send_json(data)
|
151
144
|
await asyncio.sleep(self.keep_alive_interval)
|
152
145
|
|
@@ -168,14 +161,25 @@ class BaseGraphQLWSHandler:
|
|
168
161
|
if isinstance(agen_or_err, PreExecutionError):
|
169
162
|
assert agen_or_err.errors
|
170
163
|
error_payload = agen_or_err.errors[0].formatted
|
171
|
-
|
164
|
+
error_message: ErrorMessage = {
|
165
|
+
"type": "error",
|
166
|
+
"id": operation_id,
|
167
|
+
"payload": error_payload,
|
168
|
+
}
|
169
|
+
await self.websocket.send_json(error_message)
|
172
170
|
else:
|
173
171
|
self.subscriptions[operation_id] = agen_or_err
|
172
|
+
|
174
173
|
async for result in agen_or_err:
|
175
174
|
await self.send_data(result, operation_id)
|
176
|
-
|
175
|
+
|
176
|
+
await self.websocket.send_json(
|
177
|
+
CompleteMessage({"type": "complete", "id": operation_id})
|
178
|
+
)
|
177
179
|
except asyncio.CancelledError:
|
178
|
-
await self.
|
180
|
+
await self.websocket.send_json(
|
181
|
+
CompleteMessage({"type": "complete", "id": operation_id})
|
182
|
+
)
|
179
183
|
|
180
184
|
async def cleanup_operation(self, operation_id: str) -> None:
|
181
185
|
if operation_id in self.subscriptions:
|
@@ -188,26 +192,24 @@ class BaseGraphQLWSHandler:
|
|
188
192
|
await self.tasks[operation_id]
|
189
193
|
del self.tasks[operation_id]
|
190
194
|
|
191
|
-
async def send_message(
|
192
|
-
self,
|
193
|
-
type_: str,
|
194
|
-
operation_id: str,
|
195
|
-
payload: Optional[OperationMessagePayload] = None,
|
196
|
-
) -> None:
|
197
|
-
data: OperationMessage = {"type": type_, "id": operation_id}
|
198
|
-
if payload is not None:
|
199
|
-
data["payload"] = payload
|
200
|
-
await self.websocket.send_json(data)
|
201
|
-
|
202
195
|
async def send_data(
|
203
196
|
self, execution_result: ExecutionResult, operation_id: str
|
204
197
|
) -> None:
|
205
|
-
|
198
|
+
data_message: DataMessage = {
|
199
|
+
"type": "data",
|
200
|
+
"id": operation_id,
|
201
|
+
"payload": {"data": execution_result.data},
|
202
|
+
}
|
203
|
+
|
206
204
|
if execution_result.errors:
|
207
|
-
payload["errors"] = [
|
205
|
+
data_message["payload"]["errors"] = [
|
206
|
+
err.formatted for err in execution_result.errors
|
207
|
+
]
|
208
|
+
|
208
209
|
if execution_result.extensions:
|
209
|
-
payload["extensions"] = execution_result.extensions
|
210
|
-
|
210
|
+
data_message["payload"]["extensions"] = execution_result.extensions
|
211
|
+
|
212
|
+
await self.websocket.send_json(data_message)
|
211
213
|
|
212
214
|
|
213
215
|
__all__ = ["BaseGraphQLWSHandler"]
|
@@ -0,0 +1,96 @@
|
|
1
|
+
from typing import Dict, List, TypedDict, Union
|
2
|
+
from typing_extensions import Literal, NotRequired
|
3
|
+
|
4
|
+
from graphql import GraphQLFormattedError
|
5
|
+
|
6
|
+
|
7
|
+
class ConnectionInitMessage(TypedDict):
|
8
|
+
type: Literal["connection_init"]
|
9
|
+
payload: NotRequired[Dict[str, object]]
|
10
|
+
|
11
|
+
|
12
|
+
class StartMessagePayload(TypedDict):
|
13
|
+
query: str
|
14
|
+
variables: NotRequired[Dict[str, object]]
|
15
|
+
operationName: NotRequired[str]
|
16
|
+
|
17
|
+
|
18
|
+
class StartMessage(TypedDict):
|
19
|
+
type: Literal["start"]
|
20
|
+
id: str
|
21
|
+
payload: StartMessagePayload
|
22
|
+
|
23
|
+
|
24
|
+
class StopMessage(TypedDict):
|
25
|
+
type: Literal["stop"]
|
26
|
+
id: str
|
27
|
+
|
28
|
+
|
29
|
+
class ConnectionTerminateMessage(TypedDict):
|
30
|
+
type: Literal["connection_terminate"]
|
31
|
+
|
32
|
+
|
33
|
+
class ConnectionErrorMessage(TypedDict):
|
34
|
+
type: Literal["connection_error"]
|
35
|
+
payload: NotRequired[Dict[str, object]]
|
36
|
+
|
37
|
+
|
38
|
+
class ConnectionAckMessage(TypedDict):
|
39
|
+
type: Literal["connection_ack"]
|
40
|
+
|
41
|
+
|
42
|
+
class DataMessagePayload(TypedDict):
|
43
|
+
data: object
|
44
|
+
errors: NotRequired[List[GraphQLFormattedError]]
|
45
|
+
|
46
|
+
# Non-standard field:
|
47
|
+
extensions: NotRequired[Dict[str, object]]
|
48
|
+
|
49
|
+
|
50
|
+
class DataMessage(TypedDict):
|
51
|
+
type: Literal["data"]
|
52
|
+
id: str
|
53
|
+
payload: DataMessagePayload
|
54
|
+
|
55
|
+
|
56
|
+
class ErrorMessage(TypedDict):
|
57
|
+
type: Literal["error"]
|
58
|
+
id: str
|
59
|
+
payload: GraphQLFormattedError
|
60
|
+
|
61
|
+
|
62
|
+
class CompleteMessage(TypedDict):
|
63
|
+
type: Literal["complete"]
|
64
|
+
id: str
|
65
|
+
|
66
|
+
|
67
|
+
class ConnectionKeepAliveMessage(TypedDict):
|
68
|
+
type: Literal["ka"]
|
69
|
+
|
70
|
+
|
71
|
+
OperationMessage = Union[
|
72
|
+
ConnectionInitMessage,
|
73
|
+
StartMessage,
|
74
|
+
StopMessage,
|
75
|
+
ConnectionTerminateMessage,
|
76
|
+
ConnectionErrorMessage,
|
77
|
+
ConnectionAckMessage,
|
78
|
+
DataMessage,
|
79
|
+
ErrorMessage,
|
80
|
+
CompleteMessage,
|
81
|
+
]
|
82
|
+
|
83
|
+
|
84
|
+
__all__ = [
|
85
|
+
"ConnectionInitMessage",
|
86
|
+
"StartMessage",
|
87
|
+
"StopMessage",
|
88
|
+
"ConnectionTerminateMessage",
|
89
|
+
"ConnectionErrorMessage",
|
90
|
+
"ConnectionAckMessage",
|
91
|
+
"DataMessage",
|
92
|
+
"ErrorMessage",
|
93
|
+
"CompleteMessage",
|
94
|
+
"ConnectionKeepAliveMessage",
|
95
|
+
"OperationMessage",
|
96
|
+
]
|
File without changes
|
@@ -350,7 +350,12 @@ def eval_type(
|
|
350
350
|
assert ast_unparse
|
351
351
|
type_ = ForwardRef(ast_unparse(ast_obj))
|
352
352
|
|
353
|
-
|
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,24 +0,0 @@
|
|
1
|
-
GQL_CONNECTION_INIT = "connection_init"
|
2
|
-
GQL_CONNECTION_ACK = "connection_ack"
|
3
|
-
GQL_CONNECTION_ERROR = "connection_error"
|
4
|
-
GQL_CONNECTION_TERMINATE = "connection_terminate"
|
5
|
-
GQL_CONNECTION_KEEP_ALIVE = "ka"
|
6
|
-
GQL_START = "start"
|
7
|
-
GQL_DATA = "data"
|
8
|
-
GQL_ERROR = "error"
|
9
|
-
GQL_COMPLETE = "complete"
|
10
|
-
GQL_STOP = "stop"
|
11
|
-
|
12
|
-
|
13
|
-
__all__ = [
|
14
|
-
"GQL_CONNECTION_INIT",
|
15
|
-
"GQL_CONNECTION_ACK",
|
16
|
-
"GQL_CONNECTION_ERROR",
|
17
|
-
"GQL_CONNECTION_TERMINATE",
|
18
|
-
"GQL_CONNECTION_KEEP_ALIVE",
|
19
|
-
"GQL_START",
|
20
|
-
"GQL_DATA",
|
21
|
-
"GQL_ERROR",
|
22
|
-
"GQL_COMPLETE",
|
23
|
-
"GQL_STOP",
|
24
|
-
]
|
@@ -1,52 +0,0 @@
|
|
1
|
-
from typing import Any, Dict, List, Optional, Union
|
2
|
-
from typing_extensions import TypedDict
|
3
|
-
|
4
|
-
from graphql import GraphQLFormattedError
|
5
|
-
|
6
|
-
ConnectionInitPayload = Dict[str, Any]
|
7
|
-
|
8
|
-
|
9
|
-
ConnectionErrorPayload = Dict[str, Any]
|
10
|
-
|
11
|
-
|
12
|
-
class StartPayload(TypedDict, total=False):
|
13
|
-
query: str
|
14
|
-
variables: Optional[Dict[str, Any]]
|
15
|
-
operationName: Optional[str]
|
16
|
-
|
17
|
-
|
18
|
-
class DataPayload(TypedDict, total=False):
|
19
|
-
data: Any
|
20
|
-
|
21
|
-
# Optional list of formatted graphql.GraphQLError objects
|
22
|
-
errors: Optional[List[GraphQLFormattedError]]
|
23
|
-
extensions: Optional[Dict[str, Any]]
|
24
|
-
|
25
|
-
|
26
|
-
ErrorPayload = GraphQLFormattedError
|
27
|
-
|
28
|
-
|
29
|
-
OperationMessagePayload = Union[
|
30
|
-
ConnectionInitPayload,
|
31
|
-
ConnectionErrorPayload,
|
32
|
-
StartPayload,
|
33
|
-
DataPayload,
|
34
|
-
ErrorPayload,
|
35
|
-
]
|
36
|
-
|
37
|
-
|
38
|
-
class OperationMessage(TypedDict, total=False):
|
39
|
-
type: str
|
40
|
-
id: str
|
41
|
-
payload: OperationMessagePayload
|
42
|
-
|
43
|
-
|
44
|
-
__all__ = [
|
45
|
-
"ConnectionInitPayload",
|
46
|
-
"ConnectionErrorPayload",
|
47
|
-
"StartPayload",
|
48
|
-
"DataPayload",
|
49
|
-
"ErrorPayload",
|
50
|
-
"OperationMessagePayload",
|
51
|
-
"OperationMessage",
|
52
|
-
]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/aiohttp/test/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/channels/handlers/__init__.py
RENAMED
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/channels/handlers/base.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/channels/handlers/ws_handler.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/cli/commands/__init__.py
RENAMED
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/cli/commands/export_schema.py
RENAMED
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/cli/commands/schema_codegen.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/cli/utils/load_schema.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/codegen/plugins/__init__.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/codegen/plugins/python.py
RENAMED
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/codegen/plugins/typescript.py
RENAMED
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/codegen/query_codegen.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/codemods/annotated_unions.py
RENAMED
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.1}/strawberry/codemods/update_imports.py
RENAMED
File without changes
|
File without changes
|