strawberry-graphql 0.159.1__tar.gz → 0.160.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/PKG-INFO +1 -1
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/pyproject.toml +1 -1
- strawberry_graphql-0.160.0/strawberry/extensions/__init__.py +35 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/add_validation_rules.py +2 -2
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/base_extension.py +8 -6
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/context.py +13 -13
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/directives.py +3 -3
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/disable_validation.py +2 -2
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/mask_errors.py +2 -2
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/parser_cache.py +2 -2
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/runner.py +8 -6
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/tracing/apollo.py +2 -2
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/tracing/datadog.py +2 -2
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/tracing/opentelemetry.py +2 -2
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/validation_cache.py +2 -2
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/federation/schema.py +2 -2
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/schema/execute.py +6 -6
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/schema/schema.py +3 -3
- strawberry_graphql-0.159.1/strawberry/extensions/__init__.py +0 -17
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/LICENSE +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/README.md +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/__main__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/aiohttp/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/aiohttp/handlers/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/aiohttp/handlers/graphql_transport_ws_handler.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/aiohttp/handlers/graphql_ws_handler.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/aiohttp/handlers/http_handler.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/aiohttp/test/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/aiohttp/test/client.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/aiohttp/views.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/annotation.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/arguments.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/asgi/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/asgi/handlers/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/asgi/handlers/graphql_transport_ws_handler.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/asgi/handlers/graphql_ws_handler.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/asgi/handlers/http_handler.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/asgi/test/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/asgi/test/client.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/auto.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/chalice/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/chalice/views.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/channels/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/channels/context.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/channels/handlers/base.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/channels/handlers/graphql_transport_ws_handler.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/channels/handlers/graphql_ws_handler.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/channels/handlers/http_handler.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/channels/handlers/ws_handler.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/channels/router.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/channels/testing.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/cli/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/cli/commands/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/cli/commands/codegen.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/cli/commands/export_schema.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/cli/commands/server.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/cli/constants.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/cli/debug_server.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/cli/utils/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/cli/utils/load_schema.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/codegen/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/codegen/exceptions.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/codegen/plugins/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/codegen/plugins/print_operation.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/codegen/plugins/python.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/codegen/plugins/typescript.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/codegen/query_codegen.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/codegen/types.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/custom_scalar.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/dataloader.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/directive.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/django/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/django/apps.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/django/context.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/django/test/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/django/test/client.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/django/views.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/enum.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/exceptions/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/exceptions/duplicated_type_name.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/exceptions/exception.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/exceptions/exception_source.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/exceptions/handler.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/exceptions/invalid_argument_type.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/exceptions/invalid_union_type.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/exceptions/missing_arguments_annotations.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/exceptions/missing_field_annotation.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/exceptions/missing_return_annotation.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/exceptions/not_a_strawberry_enum.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/exceptions/object_is_not_a_class.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/exceptions/object_is_not_an_enum.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/exceptions/private_strawberry_field.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/exceptions/scalar_already_registered.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/exceptions/syntax.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/exceptions/unresolved_field_type.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/exceptions/utils/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/exceptions/utils/source_finder.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/experimental/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/experimental/pydantic/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/experimental/pydantic/conversion.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/experimental/pydantic/conversion_types.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/experimental/pydantic/error_type.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/experimental/pydantic/exceptions.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/experimental/pydantic/fields.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/experimental/pydantic/object_type.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/experimental/pydantic/utils.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/ext/LICENSE +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/ext/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/ext/dataclasses/LICENSE +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/ext/dataclasses/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/ext/dataclasses/dataclasses.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/ext/mypy_plugin.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/query_depth_limiter.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/tracing/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/tracing/utils.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/utils.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/fastapi/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/fastapi/context.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/fastapi/handlers/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/fastapi/handlers/graphql_transport_ws_handler.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/fastapi/handlers/graphql_ws_handler.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/fastapi/router.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/federation/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/federation/argument.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/federation/enum.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/federation/field.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/federation/mutation.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/federation/object_type.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/federation/scalar.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/federation/schema_directive.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/federation/schema_directives.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/federation/types.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/federation/union.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/field.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/file_uploads/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/file_uploads/scalars.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/file_uploads/utils.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/flask/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/flask/graphiql.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/flask/views.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/http/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/http/temporal_response.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/lazy_type.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/mutation.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/object_type.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/permission.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/printer/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/printer/ast_from_value.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/printer/printer.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/private.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/py.typed +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/resolvers.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/sanic/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/sanic/context.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/sanic/graphiql.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/sanic/utils.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/sanic/views.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/scalars.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/schema/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/schema/base.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/schema/compat.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/schema/config.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/schema/exceptions.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/schema/name_converter.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/schema/schema_converter.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/schema/types/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/schema/types/base_scalars.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/schema/types/concrete_type.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/schema/types/scalar.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/schema_directive.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/static/graphiql.html +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/subscriptions/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/subscriptions/protocols/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/subscriptions/protocols/graphql_transport_ws/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/subscriptions/protocols/graphql_transport_ws/handlers.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/subscriptions/protocols/graphql_transport_ws/types.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/subscriptions/protocols/graphql_ws/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/subscriptions/protocols/graphql_ws/handlers.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/subscriptions/protocols/graphql_ws/types.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/test/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/test/client.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/tools/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/tools/create_type.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/tools/merge_types.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/type.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/types/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/types/execution.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/types/fields/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/types/fields/resolver.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/types/graphql.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/types/info.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/types/nodes.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/types/type_resolver.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/types/types.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/union.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/unset.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/utils/__init__.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/utils/await_maybe.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/utils/cached_property.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/utils/dataclasses.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/utils/debug.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/utils/graphiql.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/utils/graphql_lexer.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/utils/importer.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/utils/inspect.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/utils/logging.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/utils/operation.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/utils/str_converters.py +0 -0
- {strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/utils/typing.py +0 -0
@@ -0,0 +1,35 @@
|
|
1
|
+
import warnings
|
2
|
+
|
3
|
+
from .add_validation_rules import AddValidationRules
|
4
|
+
from .base_extension import SchemaExtension
|
5
|
+
from .disable_validation import DisableValidation
|
6
|
+
from .mask_errors import MaskErrors
|
7
|
+
from .parser_cache import ParserCache
|
8
|
+
from .query_depth_limiter import QueryDepthLimiter
|
9
|
+
from .validation_cache import ValidationCache
|
10
|
+
|
11
|
+
|
12
|
+
def __getattr__(name: str):
|
13
|
+
if name == "Extension":
|
14
|
+
warnings.warn(
|
15
|
+
(
|
16
|
+
"importing `Extension` from `strawberry.extensions` "
|
17
|
+
"is deprecated, import `SchemaExtension` instead."
|
18
|
+
),
|
19
|
+
DeprecationWarning,
|
20
|
+
stacklevel=2,
|
21
|
+
)
|
22
|
+
return SchemaExtension
|
23
|
+
|
24
|
+
raise AttributeError(f"module {__name__} has no attribute {name}")
|
25
|
+
|
26
|
+
|
27
|
+
__all__ = [
|
28
|
+
"SchemaExtension",
|
29
|
+
"AddValidationRules",
|
30
|
+
"DisableValidation",
|
31
|
+
"ParserCache",
|
32
|
+
"QueryDepthLimiter",
|
33
|
+
"ValidationCache",
|
34
|
+
"MaskErrors",
|
35
|
+
]
|
@@ -2,13 +2,13 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
from typing import TYPE_CHECKING, Iterator, List, Type
|
4
4
|
|
5
|
-
from strawberry.extensions.base_extension import
|
5
|
+
from strawberry.extensions.base_extension import SchemaExtension
|
6
6
|
|
7
7
|
if TYPE_CHECKING:
|
8
8
|
from graphql import ASTValidationRule
|
9
9
|
|
10
10
|
|
11
|
-
class AddValidationRules(
|
11
|
+
class AddValidationRules(SchemaExtension):
|
12
12
|
"""
|
13
13
|
Add graphql-core validation rules
|
14
14
|
|
{strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/base_extension.py
RENAMED
@@ -10,7 +10,9 @@ if TYPE_CHECKING:
|
|
10
10
|
from strawberry.types import ExecutionContext
|
11
11
|
|
12
12
|
|
13
|
-
class
|
13
|
+
class SchemaExtension:
|
14
|
+
execution_context: ExecutionContext
|
15
|
+
|
14
16
|
def __init__(self, *, execution_context: ExecutionContext):
|
15
17
|
self.execution_context = execution_context
|
16
18
|
|
@@ -47,11 +49,11 @@ class Extension:
|
|
47
49
|
return {}
|
48
50
|
|
49
51
|
|
50
|
-
Hook = Callable[[
|
52
|
+
Hook = Callable[[SchemaExtension], AsyncIteratorOrIterator[None]]
|
51
53
|
|
52
54
|
HOOK_METHODS: Set[str] = {
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
55
|
+
SchemaExtension.on_operation.__name__,
|
56
|
+
SchemaExtension.on_validate.__name__,
|
57
|
+
SchemaExtension.on_parse.__name__,
|
58
|
+
SchemaExtension.on_execute.__name__,
|
57
59
|
}
|
@@ -17,7 +17,7 @@ from typing import (
|
|
17
17
|
Union,
|
18
18
|
)
|
19
19
|
|
20
|
-
from strawberry.extensions import
|
20
|
+
from strawberry.extensions import SchemaExtension
|
21
21
|
from strawberry.utils.await_maybe import AwaitableOrValue, await_maybe
|
22
22
|
|
23
23
|
if TYPE_CHECKING:
|
@@ -27,7 +27,7 @@ if TYPE_CHECKING:
|
|
27
27
|
|
28
28
|
|
29
29
|
class WrappedHook(NamedTuple):
|
30
|
-
extension:
|
30
|
+
extension: SchemaExtension
|
31
31
|
initialized_hook: Union[AsyncIterator[None], Iterator[None]]
|
32
32
|
is_async: bool
|
33
33
|
|
@@ -47,15 +47,15 @@ class ExtensionContextManagerBase:
|
|
47
47
|
LEGACY_ENTER: str
|
48
48
|
LEGACY_EXIT: str
|
49
49
|
|
50
|
-
def __init__(self, extensions: List[
|
50
|
+
def __init__(self, extensions: List[SchemaExtension]):
|
51
51
|
self.hooks: List[WrappedHook] = []
|
52
|
-
self.default_hook: Hook = getattr(
|
52
|
+
self.default_hook: Hook = getattr(SchemaExtension, self.HOOK_NAME)
|
53
53
|
for extension in extensions:
|
54
54
|
hook = self.get_hook(extension)
|
55
55
|
if hook:
|
56
56
|
self.hooks.append(hook)
|
57
57
|
|
58
|
-
def get_hook(self, extension:
|
58
|
+
def get_hook(self, extension: SchemaExtension) -> Optional[WrappedHook]:
|
59
59
|
on_start = getattr(extension, self.LEGACY_ENTER, None)
|
60
60
|
on_end = getattr(extension, self.LEGACY_EXIT, None)
|
61
61
|
|
@@ -90,7 +90,7 @@ class ExtensionContextManagerBase:
|
|
90
90
|
|
91
91
|
@staticmethod
|
92
92
|
def from_legacy(
|
93
|
-
extension:
|
93
|
+
extension: SchemaExtension,
|
94
94
|
on_start: Optional[Callable[[], None]] = None,
|
95
95
|
on_end: Optional[Callable[[], None]] = None,
|
96
96
|
) -> WrappedHook:
|
@@ -120,8 +120,8 @@ class ExtensionContextManagerBase:
|
|
120
120
|
|
121
121
|
@staticmethod
|
122
122
|
def from_callable(
|
123
|
-
extension:
|
124
|
-
func: Callable[[
|
123
|
+
extension: SchemaExtension,
|
124
|
+
func: Callable[[SchemaExtension], AwaitableOrValue[Any]],
|
125
125
|
) -> WrappedHook:
|
126
126
|
if iscoroutinefunction(func):
|
127
127
|
|
@@ -151,7 +151,7 @@ class ExtensionContextManagerBase:
|
|
151
151
|
with ctx:
|
152
152
|
if hook.is_async:
|
153
153
|
raise RuntimeError(
|
154
|
-
f"
|
154
|
+
f"SchemaExtension hook {hook.extension}.{self.HOOK_NAME} "
|
155
155
|
"failed to complete synchronously."
|
156
156
|
)
|
157
157
|
else:
|
@@ -200,24 +200,24 @@ class ExtensionContextManagerBase:
|
|
200
200
|
|
201
201
|
|
202
202
|
class OperationContextManager(ExtensionContextManagerBase):
|
203
|
-
HOOK_NAME =
|
203
|
+
HOOK_NAME = SchemaExtension.on_operation.__name__
|
204
204
|
LEGACY_ENTER = "on_request_start"
|
205
205
|
LEGACY_EXIT = "on_request_end"
|
206
206
|
|
207
207
|
|
208
208
|
class ValidationContextManager(ExtensionContextManagerBase):
|
209
|
-
HOOK_NAME =
|
209
|
+
HOOK_NAME = SchemaExtension.on_validate.__name__
|
210
210
|
LEGACY_ENTER = "on_validation_start"
|
211
211
|
LEGACY_EXIT = "on_validation_end"
|
212
212
|
|
213
213
|
|
214
214
|
class ParsingContextManager(ExtensionContextManagerBase):
|
215
|
-
HOOK_NAME =
|
215
|
+
HOOK_NAME = SchemaExtension.on_parse.__name__
|
216
216
|
LEGACY_ENTER = "on_parsing_start"
|
217
217
|
LEGACY_EXIT = "on_parsing_end"
|
218
218
|
|
219
219
|
|
220
220
|
class ExecutingContextManager(ExtensionContextManagerBase):
|
221
|
-
HOOK_NAME =
|
221
|
+
HOOK_NAME = SchemaExtension.on_execute.__name__
|
222
222
|
LEGACY_ENTER = "on_executing_start"
|
223
223
|
LEGACY_EXIT = "on_executing_end"
|
{strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/directives.py
RENAMED
@@ -2,7 +2,7 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
from typing import TYPE_CHECKING, Any, Dict, Tuple
|
4
4
|
|
5
|
-
from strawberry.extensions import
|
5
|
+
from strawberry.extensions import SchemaExtension
|
6
6
|
from strawberry.types import Info
|
7
7
|
from strawberry.utils.await_maybe import await_maybe
|
8
8
|
|
@@ -18,7 +18,7 @@ if TYPE_CHECKING:
|
|
18
18
|
SPECIFIED_DIRECTIVES = {"include", "skip"}
|
19
19
|
|
20
20
|
|
21
|
-
class DirectivesExtension(
|
21
|
+
class DirectivesExtension(SchemaExtension):
|
22
22
|
async def resolve(
|
23
23
|
self, _next, root, info: GraphQLResolveInfo, *args, **kwargs
|
24
24
|
) -> AwaitableOrValue[Any]:
|
@@ -33,7 +33,7 @@ class DirectivesExtension(Extension):
|
|
33
33
|
return value
|
34
34
|
|
35
35
|
|
36
|
-
class DirectivesExtensionSync(
|
36
|
+
class DirectivesExtensionSync(SchemaExtension):
|
37
37
|
def resolve(
|
38
38
|
self, _next, root, info: GraphQLResolveInfo, *args, **kwargs
|
39
39
|
) -> AwaitableOrValue[Any]:
|
@@ -1,9 +1,9 @@
|
|
1
1
|
from typing import Iterator
|
2
2
|
|
3
|
-
from strawberry.extensions.base_extension import
|
3
|
+
from strawberry.extensions.base_extension import SchemaExtension
|
4
4
|
|
5
5
|
|
6
|
-
class DisableValidation(
|
6
|
+
class DisableValidation(SchemaExtension):
|
7
7
|
"""
|
8
8
|
Disable query validation
|
9
9
|
|
{strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/mask_errors.py
RENAMED
@@ -2,7 +2,7 @@ from typing import Callable
|
|
2
2
|
|
3
3
|
from graphql.error import GraphQLError
|
4
4
|
|
5
|
-
from strawberry.extensions import
|
5
|
+
from strawberry.extensions.base_extension import SchemaExtension
|
6
6
|
|
7
7
|
|
8
8
|
def default_should_mask_error(_) -> bool:
|
@@ -10,7 +10,7 @@ def default_should_mask_error(_) -> bool:
|
|
10
10
|
return True
|
11
11
|
|
12
12
|
|
13
|
-
class MaskErrors(
|
13
|
+
class MaskErrors(SchemaExtension):
|
14
14
|
should_mask_error: Callable[[GraphQLError], bool]
|
15
15
|
error_message: str
|
16
16
|
|
{strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/parser_cache.py
RENAMED
@@ -1,11 +1,11 @@
|
|
1
1
|
from functools import lru_cache
|
2
2
|
from typing import Iterator, Optional
|
3
3
|
|
4
|
-
from strawberry.extensions.base_extension import
|
4
|
+
from strawberry.extensions.base_extension import SchemaExtension
|
5
5
|
from strawberry.schema.execute import parse_document
|
6
6
|
|
7
7
|
|
8
|
-
class ParserCache(
|
8
|
+
class ParserCache(SchemaExtension):
|
9
9
|
"""
|
10
10
|
Add LRU caching the parsing step during execution to improve performance.
|
11
11
|
|
@@ -13,31 +13,33 @@ from strawberry.extensions.context import (
|
|
13
13
|
)
|
14
14
|
from strawberry.utils.await_maybe import await_maybe
|
15
15
|
|
16
|
-
from . import
|
16
|
+
from . import SchemaExtension
|
17
17
|
|
18
18
|
if TYPE_CHECKING:
|
19
19
|
from strawberry.types import ExecutionContext
|
20
20
|
|
21
21
|
|
22
|
-
class
|
23
|
-
extensions: List[
|
22
|
+
class SchemaExtensionsRunner:
|
23
|
+
extensions: List[SchemaExtension]
|
24
24
|
|
25
25
|
def __init__(
|
26
26
|
self,
|
27
27
|
execution_context: ExecutionContext,
|
28
|
-
extensions: Optional[
|
28
|
+
extensions: Optional[
|
29
|
+
List[Union[Type[SchemaExtension], SchemaExtension]]
|
30
|
+
] = None,
|
29
31
|
):
|
30
32
|
self.execution_context = execution_context
|
31
33
|
|
32
34
|
if not extensions:
|
33
35
|
extensions = []
|
34
36
|
|
35
|
-
init_extensions: List[
|
37
|
+
init_extensions: List[SchemaExtension] = []
|
36
38
|
|
37
39
|
for extension in extensions:
|
38
40
|
# If the extension has already been instantiated then set the
|
39
41
|
# `execution_context` attribute
|
40
|
-
if isinstance(extension,
|
42
|
+
if isinstance(extension, SchemaExtension):
|
41
43
|
extension.execution_context = execution_context
|
42
44
|
init_extensions.append(extension)
|
43
45
|
else:
|
{strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/tracing/apollo.py
RENAMED
@@ -6,7 +6,7 @@ from datetime import datetime
|
|
6
6
|
from inspect import isawaitable
|
7
7
|
from typing import TYPE_CHECKING, Any, Dict, List, Optional
|
8
8
|
|
9
|
-
from strawberry.extensions import
|
9
|
+
from strawberry.extensions import SchemaExtension
|
10
10
|
from strawberry.extensions.utils import get_path_from_info
|
11
11
|
|
12
12
|
from .utils import should_skip_tracing
|
@@ -76,7 +76,7 @@ class ApolloTracingStats:
|
|
76
76
|
}
|
77
77
|
|
78
78
|
|
79
|
-
class ApolloTracingExtension(
|
79
|
+
class ApolloTracingExtension(SchemaExtension):
|
80
80
|
def __init__(self, execution_context: ExecutionContext):
|
81
81
|
self._resolver_stats: List[ApolloResolverStats] = []
|
82
82
|
self.execution_context = execution_context
|
{strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/tracing/datadog.py
RENAMED
@@ -6,7 +6,7 @@ from typing import TYPE_CHECKING, Iterator, Optional
|
|
6
6
|
|
7
7
|
from ddtrace import tracer
|
8
8
|
|
9
|
-
from strawberry.extensions import
|
9
|
+
from strawberry.extensions import SchemaExtension
|
10
10
|
from strawberry.extensions.tracing.utils import should_skip_tracing
|
11
11
|
from strawberry.utils.cached_property import cached_property
|
12
12
|
|
@@ -14,7 +14,7 @@ if TYPE_CHECKING:
|
|
14
14
|
from strawberry.types.execution import ExecutionContext
|
15
15
|
|
16
16
|
|
17
|
-
class DatadogTracingExtension(
|
17
|
+
class DatadogTracingExtension(SchemaExtension):
|
18
18
|
def __init__(
|
19
19
|
self,
|
20
20
|
*,
|
@@ -8,7 +8,7 @@ from typing import TYPE_CHECKING, Any, Callable, Dict, Optional
|
|
8
8
|
from opentelemetry import trace
|
9
9
|
from opentelemetry.trace import SpanKind
|
10
10
|
|
11
|
-
from strawberry.extensions import
|
11
|
+
from strawberry.extensions import SchemaExtension
|
12
12
|
from strawberry.extensions.utils import get_path_from_info
|
13
13
|
|
14
14
|
from .utils import should_skip_tracing
|
@@ -31,7 +31,7 @@ class RequestStage(enum.Enum):
|
|
31
31
|
VALIDATION = enum.auto()
|
32
32
|
|
33
33
|
|
34
|
-
class OpenTelemetryExtension(
|
34
|
+
class OpenTelemetryExtension(SchemaExtension):
|
35
35
|
_arg_filter: Optional[ArgFilter]
|
36
36
|
_span_holder: Dict[RequestStage, Span] = dict()
|
37
37
|
_tracer: Tracer
|
{strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/extensions/validation_cache.py
RENAMED
@@ -1,11 +1,11 @@
|
|
1
1
|
from functools import lru_cache
|
2
2
|
from typing import Iterator, Optional
|
3
3
|
|
4
|
-
from strawberry.extensions.base_extension import
|
4
|
+
from strawberry.extensions.base_extension import SchemaExtension
|
5
5
|
from strawberry.schema.execute import validate_document
|
6
6
|
|
7
7
|
|
8
|
-
class ValidationCache(
|
8
|
+
class ValidationCache(SchemaExtension):
|
9
9
|
"""
|
10
10
|
Add LRU caching the validation step during execution to improve performance.
|
11
11
|
|
@@ -42,7 +42,7 @@ if TYPE_CHECKING:
|
|
42
42
|
|
43
43
|
from strawberry.custom_scalar import ScalarDefinition, ScalarWrapper
|
44
44
|
from strawberry.enum import EnumDefinition
|
45
|
-
from strawberry.extensions import
|
45
|
+
from strawberry.extensions import SchemaExtension
|
46
46
|
from strawberry.federation.schema_directives import ComposeDirective
|
47
47
|
from strawberry.schema.config import StrawberryConfig
|
48
48
|
from strawberry.schema.types.concrete_type import TypeMap
|
@@ -59,7 +59,7 @@ class Schema(BaseSchema):
|
|
59
59
|
# TODO: we should update directives' type in the main schema
|
60
60
|
directives: Iterable[Type] = (),
|
61
61
|
types: Iterable[Type] = (),
|
62
|
-
extensions: Iterable[Union[Type["
|
62
|
+
extensions: Iterable[Union[Type["SchemaExtension"], "SchemaExtension"]] = (),
|
63
63
|
execution_context_class: Optional[Type["GraphQLExecutionContext"]] = None,
|
64
64
|
config: Optional["StrawberryConfig"] = None,
|
65
65
|
scalar_overrides: Optional[
|
@@ -21,7 +21,7 @@ from graphql import execute as original_execute
|
|
21
21
|
from graphql.validation import validate
|
22
22
|
|
23
23
|
from strawberry.exceptions import MissingQueryError
|
24
|
-
from strawberry.extensions.runner import
|
24
|
+
from strawberry.extensions.runner import SchemaExtensionsRunner
|
25
25
|
from strawberry.types import ExecutionResult
|
26
26
|
|
27
27
|
from .exceptions import InvalidOperationTypeError
|
@@ -33,7 +33,7 @@ if TYPE_CHECKING:
|
|
33
33
|
from graphql.language import DocumentNode
|
34
34
|
from graphql.validation import ASTValidationRule
|
35
35
|
|
36
|
-
from strawberry.extensions import
|
36
|
+
from strawberry.extensions import SchemaExtension
|
37
37
|
from strawberry.types import ExecutionContext
|
38
38
|
from strawberry.types.graphql import OperationType
|
39
39
|
|
@@ -70,12 +70,12 @@ async def execute(
|
|
70
70
|
schema: GraphQLSchema,
|
71
71
|
*,
|
72
72
|
allowed_operation_types: Iterable[OperationType],
|
73
|
-
extensions: Sequence[Union[Type[
|
73
|
+
extensions: Sequence[Union[Type[SchemaExtension], SchemaExtension]],
|
74
74
|
execution_context: ExecutionContext,
|
75
75
|
execution_context_class: Optional[Type[GraphQLExecutionContext]] = None,
|
76
76
|
process_errors: Callable[[List[GraphQLError], Optional[ExecutionContext]], None],
|
77
77
|
) -> ExecutionResult:
|
78
|
-
extensions_runner =
|
78
|
+
extensions_runner = SchemaExtensionsRunner(
|
79
79
|
execution_context=execution_context,
|
80
80
|
extensions=list(extensions),
|
81
81
|
)
|
@@ -163,12 +163,12 @@ def execute_sync(
|
|
163
163
|
schema: GraphQLSchema,
|
164
164
|
*,
|
165
165
|
allowed_operation_types: Iterable[OperationType],
|
166
|
-
extensions: Sequence[Union[Type[
|
166
|
+
extensions: Sequence[Union[Type[SchemaExtension], SchemaExtension]],
|
167
167
|
execution_context: ExecutionContext,
|
168
168
|
execution_context_class: Optional[Type[GraphQLExecutionContext]] = None,
|
169
169
|
process_errors: Callable[[List[GraphQLError], Optional[ExecutionContext]], None],
|
170
170
|
) -> ExecutionResult:
|
171
|
-
extensions_runner =
|
171
|
+
extensions_runner = SchemaExtensionsRunner(
|
172
172
|
execution_context=execution_context,
|
173
173
|
extensions=list(extensions),
|
174
174
|
)
|
@@ -37,7 +37,7 @@ if TYPE_CHECKING:
|
|
37
37
|
from strawberry.custom_scalar import ScalarDefinition, ScalarWrapper
|
38
38
|
from strawberry.directive import StrawberryDirective
|
39
39
|
from strawberry.enum import EnumDefinition
|
40
|
-
from strawberry.extensions import
|
40
|
+
from strawberry.extensions import SchemaExtension
|
41
41
|
from strawberry.field import StrawberryField
|
42
42
|
from strawberry.types import ExecutionResult
|
43
43
|
from strawberry.union import StrawberryUnion
|
@@ -59,7 +59,7 @@ class Schema(BaseSchema):
|
|
59
59
|
subscription: Optional[Type] = None,
|
60
60
|
directives: Iterable[StrawberryDirective] = (),
|
61
61
|
types=(),
|
62
|
-
extensions: Iterable[Union[Type[
|
62
|
+
extensions: Iterable[Union[Type[SchemaExtension], SchemaExtension]] = (),
|
63
63
|
execution_context_class: Optional[Type[GraphQLExecutionContext]] = None,
|
64
64
|
config: Optional[StrawberryConfig] = None,
|
65
65
|
scalar_overrides: Optional[
|
@@ -157,7 +157,7 @@ class Schema(BaseSchema):
|
|
157
157
|
|
158
158
|
def get_extensions(
|
159
159
|
self, sync: bool = False
|
160
|
-
) -> List[Union[Type[
|
160
|
+
) -> List[Union[Type[SchemaExtension], SchemaExtension]]:
|
161
161
|
extensions = list(self.extensions)
|
162
162
|
|
163
163
|
if self.directives:
|
@@ -1,17 +0,0 @@
|
|
1
|
-
from .add_validation_rules import AddValidationRules
|
2
|
-
from .base_extension import Extension
|
3
|
-
from .disable_validation import DisableValidation
|
4
|
-
from .mask_errors import MaskErrors
|
5
|
-
from .parser_cache import ParserCache
|
6
|
-
from .query_depth_limiter import QueryDepthLimiter
|
7
|
-
from .validation_cache import ValidationCache
|
8
|
-
|
9
|
-
__all__ = [
|
10
|
-
"Extension",
|
11
|
-
"AddValidationRules",
|
12
|
-
"DisableValidation",
|
13
|
-
"ParserCache",
|
14
|
-
"QueryDepthLimiter",
|
15
|
-
"ValidationCache",
|
16
|
-
"MaskErrors",
|
17
|
-
]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/aiohttp/handlers/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/aiohttp/test/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/asgi/handlers/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/asgi/handlers/http_handler.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.159.1 → strawberry_graphql-0.160.0}/strawberry/channels/handlers/base.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/channels/handlers/ws_handler.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/cli/commands/__init__.py
RENAMED
File without changes
|
{strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/cli/commands/codegen.py
RENAMED
File without changes
|
{strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/cli/commands/export_schema.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/cli/utils/load_schema.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/codegen/plugins/__init__.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/codegen/plugins/python.py
RENAMED
File without changes
|
{strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/codegen/plugins/typescript.py
RENAMED
File without changes
|
{strawberry_graphql-0.159.1 → strawberry_graphql-0.160.0}/strawberry/codegen/query_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.159.1 → strawberry_graphql-0.160.0}/strawberry/django/test/__init__.py
RENAMED
File without changes
|