strawberry-graphql 0.266.1__tar.gz → 0.267.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.266.1 → strawberry_graphql-0.267.0}/PKG-INFO +1 -1
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/pyproject.toml +1 -1
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/parent.py +21 -2
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/fields/resolver.py +12 -5
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/utils/typing.py +18 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/LICENSE +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/README.md +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/__main__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/aiohttp/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/aiohttp/test/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/aiohttp/test/client.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/aiohttp/views.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/annotation.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/asgi/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/asgi/test/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/asgi/test/client.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/chalice/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/chalice/views.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/channels/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/channels/handlers/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/channels/handlers/base.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/channels/handlers/http_handler.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/channels/handlers/ws_handler.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/channels/router.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/channels/testing.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/cli/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/cli/app.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/cli/commands/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/cli/commands/codegen.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/cli/commands/export_schema.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/cli/commands/schema_codegen.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/cli/commands/server.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/cli/commands/upgrade/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/cli/commands/upgrade/_fake_progress.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/cli/commands/upgrade/_run_codemod.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/cli/constants.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/cli/debug_server.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/cli/utils/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/cli/utils/load_schema.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/codegen/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/codegen/exceptions.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/codegen/plugins/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/codegen/plugins/print_operation.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/codegen/plugins/python.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/codegen/plugins/typescript.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/codegen/query_codegen.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/codegen/types.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/codemods/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/codemods/annotated_unions.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/codemods/update_imports.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/dataloader.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/directive.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/django/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/django/apps.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/django/context.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/django/test/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/django/test/client.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/django/views.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/conflicting_arguments.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/duplicated_type_name.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/exception.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/exception_source.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/handler.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/invalid_argument_type.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/invalid_union_type.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/missing_arguments_annotations.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/missing_dependencies.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/missing_field_annotation.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/missing_return_annotation.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/object_is_not_a_class.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/object_is_not_an_enum.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/permission_fail_silently_requires_optional.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/private_strawberry_field.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/scalar_already_registered.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/syntax.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/unresolved_field_type.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/utils/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/utils/source_finder.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/experimental/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/experimental/pydantic/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/experimental/pydantic/_compat.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/experimental/pydantic/conversion.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/experimental/pydantic/conversion_types.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/experimental/pydantic/error_type.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/experimental/pydantic/exceptions.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/experimental/pydantic/fields.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/experimental/pydantic/object_type.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/experimental/pydantic/utils.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/ext/LICENSE +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/ext/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/ext/dataclasses/LICENSE +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/ext/dataclasses/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/ext/dataclasses/dataclasses.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/ext/mypy_plugin.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/add_validation_rules.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/base_extension.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/context.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/directives.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/disable_validation.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/field_extension.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/mask_errors.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/max_aliases.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/max_tokens.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/parser_cache.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/pyinstrument.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/query_depth_limiter.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/runner.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/tracing/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/tracing/apollo.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/tracing/datadog.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/tracing/opentelemetry.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/tracing/utils.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/utils.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/validation_cache.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/fastapi/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/fastapi/context.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/fastapi/router.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/federation/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/federation/argument.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/federation/enum.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/federation/field.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/federation/mutation.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/federation/object_type.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/federation/scalar.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/federation/schema.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/federation/schema_directive.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/federation/schema_directives.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/federation/types.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/federation/union.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/field_extensions/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/field_extensions/input_mutation.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/file_uploads/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/file_uploads/scalars.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/file_uploads/utils.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/flask/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/flask/views.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/http/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/http/async_base_view.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/http/base.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/http/exceptions.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/http/ides.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/http/parse_content_type.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/http/sync_base_view.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/http/temporal_response.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/http/types.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/http/typevars.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/litestar/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/litestar/controller.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/permission.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/printer/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/printer/ast_from_value.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/printer/printer.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/py.typed +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/quart/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/quart/views.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/relay/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/relay/exceptions.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/relay/fields.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/relay/types.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/relay/utils.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/resolvers.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/sanic/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/sanic/context.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/sanic/utils.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/sanic/views.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/scalars.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema/base.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema/compat.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema/config.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema/exceptions.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema/name_converter.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema/schema.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema/schema_converter.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema/types/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema/types/base_scalars.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema/types/concrete_type.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema/types/scalar.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema/validation_rules/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema/validation_rules/one_of.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema_codegen/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema_directive.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema_directives.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/static/apollo-sandbox.html +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/static/graphiql.html +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/static/pathfinder.html +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/subscriptions/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/subscriptions/protocols/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/subscriptions/protocols/graphql_transport_ws/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/subscriptions/protocols/graphql_transport_ws/handlers.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/subscriptions/protocols/graphql_transport_ws/types.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/subscriptions/protocols/graphql_ws/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/subscriptions/protocols/graphql_ws/handlers.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/subscriptions/protocols/graphql_ws/types.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/test/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/test/client.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/tools/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/tools/create_type.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/tools/merge_types.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/arguments.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/auto.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/base.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/cast.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/enum.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/execution.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/field.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/fields/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/graphql.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/info.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/lazy_type.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/maybe.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/mutation.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/nodes.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/object_type.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/private.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/scalar.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/type_resolver.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/union.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/unset.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/utils/__init__.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/utils/aio.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/utils/await_maybe.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/utils/dataclasses.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/utils/debug.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/utils/deprecations.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/utils/graphql_lexer.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/utils/importer.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/utils/inspect.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/utils/logging.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/utils/operation.py +0 -0
- {strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/utils/str_converters.py +0 -0
@@ -1,4 +1,7 @@
|
|
1
|
-
|
1
|
+
import re
|
2
|
+
from typing import Annotated, Any, ForwardRef, TypeVar
|
3
|
+
|
4
|
+
_parent_re = re.compile(r"^(?:strawberry\.)?Parent\[(.*)\]$")
|
2
5
|
|
3
6
|
|
4
7
|
class StrawberryParent: ...
|
@@ -40,4 +43,20 @@ class Query:
|
|
40
43
|
```
|
41
44
|
"""
|
42
45
|
|
43
|
-
|
46
|
+
|
47
|
+
def resolve_parent_forward_arg(annotation: Any) -> Any:
|
48
|
+
if isinstance(annotation, str):
|
49
|
+
str_annotation = annotation
|
50
|
+
elif isinstance(annotation, ForwardRef):
|
51
|
+
str_annotation = annotation.__forward_arg__
|
52
|
+
else:
|
53
|
+
# If neither, return the annotation as is
|
54
|
+
return annotation
|
55
|
+
|
56
|
+
if parent_match := _parent_re.match(str_annotation):
|
57
|
+
annotation = Parent[ForwardRef(parent_match.group(1))] # type: ignore[misc]
|
58
|
+
|
59
|
+
return annotation
|
60
|
+
|
61
|
+
|
62
|
+
__all__ = ["Parent", "StrawberryParent", "resolve_parent_forward_arg"]
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/fields/resolver.py
RENAMED
@@ -25,7 +25,7 @@ from strawberry.exceptions import (
|
|
25
25
|
ConflictingArgumentsError,
|
26
26
|
MissingArgumentsAnnotationsError,
|
27
27
|
)
|
28
|
-
from strawberry.parent import StrawberryParent
|
28
|
+
from strawberry.parent import StrawberryParent, resolve_parent_forward_arg
|
29
29
|
from strawberry.types.arguments import StrawberryArgument
|
30
30
|
from strawberry.types.base import StrawberryType, has_object_definition
|
31
31
|
from strawberry.types.info import Info
|
@@ -118,10 +118,17 @@ class ReservedType(NamedTuple):
|
|
118
118
|
try:
|
119
119
|
evaled_annotation = annotation.evaluate()
|
120
120
|
except NameError:
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
121
|
+
# If this is a strawberry.Parent using ForwardRef, we will fail to
|
122
|
+
# evaluate at this moment, but at least knowing that it is a reserved
|
123
|
+
# type is enough for now
|
124
|
+
# We might want to revisit this in the future, maybe by postponing
|
125
|
+
# this check to when the schema is actually being created
|
126
|
+
evaled_annotation = resolve_parent_forward_arg(
|
127
|
+
annotation.annotation
|
128
|
+
)
|
129
|
+
|
130
|
+
if self.is_reserved_type(evaled_annotation):
|
131
|
+
type_parameters.append(parameter)
|
125
132
|
|
126
133
|
if len(type_parameters) > 1:
|
127
134
|
raise ConflictingArgumentsError(
|
@@ -304,11 +304,13 @@ def eval_type(
|
|
304
304
|
localns: Optional[dict] = None,
|
305
305
|
) -> type:
|
306
306
|
"""Evaluates a type, resolving forward references."""
|
307
|
+
from strawberry.parent import StrawberryParent
|
307
308
|
from strawberry.types.auto import StrawberryAuto
|
308
309
|
from strawberry.types.lazy_type import StrawberryLazyReference
|
309
310
|
from strawberry.types.private import StrawberryPrivate
|
310
311
|
|
311
312
|
globalns = globalns or {}
|
313
|
+
|
312
314
|
# If this is not a string, maybe its args are (e.g. list["Foo"])
|
313
315
|
if isinstance(type_, ForwardRef):
|
314
316
|
ast_obj = cast("ast.Expr", ast.parse(type_.__forward_arg__).body[0])
|
@@ -355,6 +357,7 @@ def eval_type(
|
|
355
357
|
)
|
356
358
|
args = (type_arg, *remaining_args)
|
357
359
|
break
|
360
|
+
|
358
361
|
if isinstance(arg, StrawberryAuto):
|
359
362
|
remaining_args = [
|
360
363
|
a for a in args[1:] if not isinstance(a, StrawberryAuto)
|
@@ -362,6 +365,21 @@ def eval_type(
|
|
362
365
|
args = (args[0], arg, *remaining_args)
|
363
366
|
break
|
364
367
|
|
368
|
+
if isinstance(arg, StrawberryParent):
|
369
|
+
remaining_args = [
|
370
|
+
a for a in args[1:] if not isinstance(a, StrawberryParent)
|
371
|
+
]
|
372
|
+
try:
|
373
|
+
type_arg = (
|
374
|
+
eval_type(args[0], globalns, localns)
|
375
|
+
if isinstance(args[0], ForwardRef)
|
376
|
+
else args[0]
|
377
|
+
)
|
378
|
+
except (NameError, TypeError):
|
379
|
+
type_arg = args[0]
|
380
|
+
args = (type_arg, arg, *remaining_args)
|
381
|
+
break
|
382
|
+
|
365
383
|
# If we have only a StrawberryLazyReference and no more annotations,
|
366
384
|
# we need to return the argument directly because Annotated
|
367
385
|
# will raise an error if trying to instantiate it with only
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/channels/handlers/__init__.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/channels/handlers/base.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/channels/handlers/ws_handler.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/cli/commands/__init__.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/cli/commands/codegen.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/cli/commands/export_schema.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/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.266.1 → strawberry_graphql-0.267.0}/strawberry/cli/utils/load_schema.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/codegen/plugins/__init__.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/codegen/plugins/python.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/codegen/plugins/typescript.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/codegen/query_codegen.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/codemods/annotated_unions.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/codemods/update_imports.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/django/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.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/exception.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/exception_source.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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/exceptions/utils/__init__.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/experimental/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/experimental/pydantic/fields.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/experimental/pydantic/utils.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/ext/dataclasses/LICENSE
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/ext/dataclasses/__init__.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/ext/dataclasses/dataclasses.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/base_extension.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/directives.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/field_extension.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/mask_errors.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/max_aliases.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/max_tokens.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/parser_cache.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/pyinstrument.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/tracing/__init__.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/tracing/apollo.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/tracing/datadog.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/tracing/utils.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/extensions/validation_cache.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
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/federation/object_type.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/federation/schema_directive.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/federation/schema_directives.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/field_extensions/__init__.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/file_uploads/__init__.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/file_uploads/scalars.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/http/async_base_view.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/http/parse_content_type.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/http/temporal_response.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/printer/ast_from_value.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
|
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
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema/name_converter.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema/schema_converter.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema/types/__init__.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema/types/base_scalars.py
RENAMED
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema/types/concrete_type.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/schema_codegen/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/static/apollo-sandbox.html
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/subscriptions/__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
|
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
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/types/fields/__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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.266.1 → strawberry_graphql-0.267.0}/strawberry/utils/str_converters.py
RENAMED
File without changes
|