strawberry-graphql 0.283.3__tar.gz → 0.284.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.
Potentially problematic release.
This version of strawberry-graphql might be problematic. Click here for more details.
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/PKG-INFO +2 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/pyproject.toml +5 -6
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/aiohttp/views.py +2 -3
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/annotation.py +6 -9
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/asgi/__init__.py +8 -3
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/asgi/test/client.py +1 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/channels/handlers/base.py +3 -3
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/channels/handlers/http_handler.py +3 -3
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/channels/handlers/ws_handler.py +1 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/cli/commands/upgrade/__init__.py +1 -3
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/codegen/query_codegen.py +1 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/codegen/types.py +1 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/dataloader.py +9 -3
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/directive.py +1 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/django/views.py +2 -3
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/handler.py +2 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/utils/source_finder.py +2 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/experimental/pydantic/_compat.py +3 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/experimental/pydantic/error_type.py +1 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/experimental/pydantic/fields.py +8 -14
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/experimental/pydantic/object_type.py +1 -9
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/ext/mypy_plugin.py +2 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/base_extension.py +2 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/context.py +1 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/directives.py +3 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/field_extension.py +3 -3
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/query_depth_limiter.py +1 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/tracing/apollo.py +2 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/tracing/datadog.py +2 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/tracing/opentelemetry.py +1 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/tracing/utils.py +3 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/fastapi/router.py +2 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/federation/enum.py +1 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/federation/field.py +2 -3
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/federation/object_type.py +1 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/federation/scalar.py +2 -8
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/federation/schema_directive.py +2 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/flask/views.py +1 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/http/__init__.py +2 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/http/async_base_view.py +2 -3
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/http/ides.py +1 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/http/sync_base_view.py +1 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/http/types.py +2 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/litestar/controller.py +8 -3
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/printer/printer.py +2 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/quart/views.py +2 -3
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/relay/fields.py +5 -3
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/relay/types.py +5 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/resolvers.py +2 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/sanic/views.py +2 -3
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/schema/compat.py +1 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/schema/config.py +4 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/schema/schema.py +2 -3
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/schema/schema_converter.py +1 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/schema/types/base_scalars.py +1 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/schema_codegen/__init__.py +2 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/schema_directive.py +2 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/subscriptions/protocols/graphql_transport_ws/types.py +2 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/subscriptions/protocols/graphql_ws/types.py +2 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/test/client.py +2 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/arguments.py +2 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/auto.py +1 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/base.py +7 -5
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/enum.py +1 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/field.py +6 -8
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/fields/resolver.py +3 -3
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/maybe.py +11 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/mutation.py +3 -4
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/object_type.py +2 -21
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/scalar.py +2 -7
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/union.py +1 -1
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/utils/aio.py +7 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/utils/inspect.py +2 -2
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/utils/typing.py +8 -68
- strawberry_graphql-0.283.3/strawberry/utils/dataclasses.py +0 -37
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/LICENSE +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/README.md +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/__main__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/aiohttp/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/aiohttp/test/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/aiohttp/test/client.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/asgi/test/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/chalice/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/chalice/views.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/channels/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/channels/handlers/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/channels/router.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/channels/testing.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/cli/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/cli/app.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/cli/commands/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/cli/commands/codegen.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/cli/commands/dev.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/cli/commands/export_schema.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/cli/commands/locate_definition.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/cli/commands/schema_codegen.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/cli/commands/server.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/cli/commands/upgrade/_fake_progress.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/cli/commands/upgrade/_run_codemod.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/cli/constants.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/cli/dev_server.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/cli/utils/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/cli/utils/load_schema.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/codegen/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/codegen/exceptions.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/codegen/plugins/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/codegen/plugins/print_operation.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/codegen/plugins/python.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/codegen/plugins/typescript.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/codemods/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/codemods/annotated_unions.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/codemods/maybe_optional.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/codemods/update_imports.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/django/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/django/apps.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/django/context.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/django/test/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/django/test/client.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/conflicting_arguments.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/duplicated_type_name.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/exception.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/exception_source.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/invalid_argument_type.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/invalid_superclass_interface.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/invalid_union_type.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/missing_arguments_annotations.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/missing_dependencies.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/missing_field_annotation.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/missing_return_annotation.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/object_is_not_a_class.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/object_is_not_an_enum.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/permission_fail_silently_requires_optional.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/private_strawberry_field.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/scalar_already_registered.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/syntax.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/unresolved_field_type.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/exceptions/utils/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/experimental/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/experimental/pydantic/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/experimental/pydantic/conversion.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/experimental/pydantic/conversion_types.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/experimental/pydantic/exceptions.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/experimental/pydantic/utils.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/ext/LICENSE +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/ext/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/ext/dataclasses/LICENSE +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/ext/dataclasses/README.md +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/ext/dataclasses/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/ext/dataclasses/dataclasses.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/add_validation_rules.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/disable_introspection.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/disable_validation.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/mask_errors.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/max_aliases.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/max_tokens.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/parser_cache.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/pyinstrument.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/runner.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/tracing/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/utils.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/validation_cache.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/fastapi/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/fastapi/context.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/federation/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/federation/argument.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/federation/mutation.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/federation/schema.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/federation/schema_directives.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/federation/types.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/federation/union.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/field_extensions/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/field_extensions/input_mutation.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/file_uploads/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/file_uploads/scalars.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/file_uploads/utils.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/flask/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/http/base.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/http/exceptions.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/http/parse_content_type.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/http/temporal_response.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/http/typevars.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/litestar/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/parent.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/permission.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/printer/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/printer/ast_from_value.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/py.typed +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/quart/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/relay/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/relay/exceptions.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/relay/utils.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/sanic/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/sanic/context.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/sanic/utils.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/scalars.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/schema/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/schema/_graphql_core.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/schema/base.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/schema/exceptions.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/schema/name_converter.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/schema/types/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/schema/types/concrete_type.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/schema/types/scalar.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/schema/validation_rules/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/schema/validation_rules/maybe_null.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/schema/validation_rules/one_of.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/schema_directives.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/static/apollo-sandbox.html +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/static/graphiql.html +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/static/pathfinder.html +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/streamable.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/subscriptions/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/subscriptions/protocols/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/subscriptions/protocols/graphql_transport_ws/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/subscriptions/protocols/graphql_transport_ws/handlers.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/subscriptions/protocols/graphql_ws/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/subscriptions/protocols/graphql_ws/handlers.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/test/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/tools/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/tools/create_type.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/tools/merge_types.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/cast.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/execution.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/fields/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/graphql.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/info.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/lazy_type.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/nodes.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/private.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/type_resolver.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/types/unset.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/utils/__init__.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/utils/await_maybe.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/utils/deprecations.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/utils/importer.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/utils/locate_definition.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/utils/logging.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/utils/operation.py +0 -0
- {strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/utils/str_converters.py +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: strawberry-graphql
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.284.1
|
|
4
4
|
Summary: A library for creating GraphQL APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
License-File: LICENSE
|
|
7
7
|
Keywords: graphql,api,rest,starlette,async
|
|
8
8
|
Author: Patrick Arminio
|
|
9
9
|
Author-email: patrick.arminio@gmail.com
|
|
10
|
-
Requires-Python: >=3.
|
|
10
|
+
Requires-Python: >=3.10,<4.0
|
|
11
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Classifier: Topic :: Software Development :: Libraries
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "strawberry-graphql"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.284.1"
|
|
4
4
|
description = "A library for creating GraphQL APIs"
|
|
5
5
|
authors = [{ name = "Patrick Arminio", email = "patrick.arminio@gmail.com" }]
|
|
6
6
|
license = { text = "MIT" }
|
|
@@ -13,7 +13,7 @@ classifiers = [
|
|
|
13
13
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
14
14
|
"License :: OSI Approved :: MIT License",
|
|
15
15
|
]
|
|
16
|
-
requires-python = ">=3.
|
|
16
|
+
requires-python = ">=3.10,<4.0"
|
|
17
17
|
dependencies = [
|
|
18
18
|
"graphql-core>=3.2.0,<3.4.0",
|
|
19
19
|
"typing-extensions>=4.5.0",
|
|
@@ -88,7 +88,7 @@ dev = [
|
|
|
88
88
|
"pyinstrument (>=4.0.0)",
|
|
89
89
|
"pytest (>=7.2,<8.0)",
|
|
90
90
|
"pytest-asyncio (>=0.20.3)",
|
|
91
|
-
"pytest-codspeed (>=3.0.0)
|
|
91
|
+
"pytest-codspeed (>=3.0.0)",
|
|
92
92
|
"pytest-cov (>=4.0.0,<5.0.0)",
|
|
93
93
|
"pytest-emoji (>=0.2.0,<0.3.0)",
|
|
94
94
|
"pytest-mock (>=3.10,<4.0)",
|
|
@@ -191,12 +191,12 @@ append-github-contributor = true
|
|
|
191
191
|
exclude = ["**/__pycache__", "**/.venv", "**/.pytest_cache", "**/.nox"]
|
|
192
192
|
reportMissingImports = true
|
|
193
193
|
reportMissingTypeStubs = false
|
|
194
|
-
pythonVersion = "3.
|
|
194
|
+
pythonVersion = "3.10"
|
|
195
195
|
stubPath = ""
|
|
196
196
|
|
|
197
197
|
[tool.ruff]
|
|
198
198
|
line-length = 88
|
|
199
|
-
target-version = "
|
|
199
|
+
target-version = "py310"
|
|
200
200
|
fix = true
|
|
201
201
|
exclude = [
|
|
202
202
|
".bzr",
|
|
@@ -339,7 +339,6 @@ ignore = [
|
|
|
339
339
|
"W191",
|
|
340
340
|
"PLR0915",
|
|
341
341
|
]
|
|
342
|
-
exclude = ["tests/python_312/*"] # SyntaxError because we support Python 3.9+
|
|
343
342
|
|
|
344
343
|
[tool.ruff.lint.per-file-ignores]
|
|
345
344
|
".github/*" = ["INP001"]
|
|
@@ -6,11 +6,10 @@ from datetime import timedelta
|
|
|
6
6
|
from json.decoder import JSONDecodeError
|
|
7
7
|
from typing import (
|
|
8
8
|
TYPE_CHECKING,
|
|
9
|
-
Callable,
|
|
10
9
|
Optional,
|
|
10
|
+
TypeGuard,
|
|
11
11
|
Union,
|
|
12
12
|
)
|
|
13
|
-
from typing_extensions import TypeGuard
|
|
14
13
|
|
|
15
14
|
from lia import AiohttpHTTPRequestAdapter, HTTPException
|
|
16
15
|
|
|
@@ -31,7 +30,7 @@ from strawberry.http.typevars import (
|
|
|
31
30
|
from strawberry.subscriptions import GRAPHQL_TRANSPORT_WS_PROTOCOL, GRAPHQL_WS_PROTOCOL
|
|
32
31
|
|
|
33
32
|
if TYPE_CHECKING:
|
|
34
|
-
from collections.abc import AsyncGenerator, Mapping, Sequence
|
|
33
|
+
from collections.abc import AsyncGenerator, Callable, Mapping, Sequence
|
|
35
34
|
|
|
36
35
|
from strawberry.http import GraphQLHTTPResponse
|
|
37
36
|
from strawberry.http.ides import GraphQL_IDE
|
|
@@ -5,6 +5,7 @@ import typing
|
|
|
5
5
|
import warnings
|
|
6
6
|
from collections import abc
|
|
7
7
|
from enum import Enum
|
|
8
|
+
from types import UnionType
|
|
8
9
|
from typing import (
|
|
9
10
|
TYPE_CHECKING,
|
|
10
11
|
Annotated,
|
|
@@ -14,8 +15,10 @@ from typing import (
|
|
|
14
15
|
TypeVar,
|
|
15
16
|
Union,
|
|
16
17
|
cast,
|
|
18
|
+
get_args,
|
|
19
|
+
get_origin,
|
|
17
20
|
)
|
|
18
|
-
from typing_extensions import Self
|
|
21
|
+
from typing_extensions import Self
|
|
19
22
|
|
|
20
23
|
from strawberry.streamable import StrawberryStreamable
|
|
21
24
|
from strawberry.types.base import (
|
|
@@ -413,16 +416,10 @@ class StrawberryAnnotation:
|
|
|
413
416
|
"""Returns True if annotation is a Union."""
|
|
414
417
|
# this check is needed because unions declared with the new syntax `A | B`
|
|
415
418
|
# don't have a `__origin__` property on them, but they are instances of
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
from types import UnionType
|
|
419
|
-
|
|
420
|
-
if isinstance(annotation, UnionType):
|
|
421
|
-
return True
|
|
419
|
+
if isinstance(annotation, UnionType):
|
|
420
|
+
return True
|
|
422
421
|
|
|
423
422
|
# unions declared as Union[A, B] fall through to this check
|
|
424
|
-
# even on python 3.10+
|
|
425
|
-
|
|
426
423
|
annotation_origin = getattr(annotation, "__origin__", None)
|
|
427
424
|
|
|
428
425
|
if annotation_origin is typing.Union:
|
|
@@ -5,11 +5,10 @@ from datetime import timedelta
|
|
|
5
5
|
from json import JSONDecodeError
|
|
6
6
|
from typing import (
|
|
7
7
|
TYPE_CHECKING,
|
|
8
|
-
Callable,
|
|
9
8
|
Optional,
|
|
9
|
+
TypeGuard,
|
|
10
10
|
Union,
|
|
11
11
|
)
|
|
12
|
-
from typing_extensions import TypeGuard
|
|
13
12
|
|
|
14
13
|
from lia import HTTPException, StarletteRequestAdapter
|
|
15
14
|
from starlette import status
|
|
@@ -38,7 +37,13 @@ from strawberry.http.typevars import (
|
|
|
38
37
|
from strawberry.subscriptions import GRAPHQL_TRANSPORT_WS_PROTOCOL, GRAPHQL_WS_PROTOCOL
|
|
39
38
|
|
|
40
39
|
if TYPE_CHECKING:
|
|
41
|
-
from collections.abc import
|
|
40
|
+
from collections.abc import (
|
|
41
|
+
AsyncGenerator,
|
|
42
|
+
AsyncIterator,
|
|
43
|
+
Callable,
|
|
44
|
+
Mapping,
|
|
45
|
+
Sequence,
|
|
46
|
+
)
|
|
42
47
|
|
|
43
48
|
from starlette.types import Receive, Scope, Send
|
|
44
49
|
|
{strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/channels/handlers/base.py
RENAMED
|
@@ -2,13 +2,13 @@ import asyncio
|
|
|
2
2
|
import contextlib
|
|
3
3
|
import warnings
|
|
4
4
|
from collections import defaultdict
|
|
5
|
-
from collections.abc import AsyncGenerator, Awaitable, Sequence
|
|
5
|
+
from collections.abc import AsyncGenerator, Awaitable, Callable, Sequence
|
|
6
6
|
from typing import (
|
|
7
7
|
Any,
|
|
8
|
-
|
|
8
|
+
Literal,
|
|
9
9
|
Optional,
|
|
10
10
|
)
|
|
11
|
-
from typing_extensions import
|
|
11
|
+
from typing_extensions import Protocol, TypedDict
|
|
12
12
|
from weakref import WeakSet
|
|
13
13
|
|
|
14
14
|
from channels.consumer import AsyncConsumer
|
|
@@ -5,8 +5,8 @@ import json
|
|
|
5
5
|
import warnings
|
|
6
6
|
from functools import cached_property
|
|
7
7
|
from io import BytesIO
|
|
8
|
-
from typing import TYPE_CHECKING, Any,
|
|
9
|
-
from typing_extensions import
|
|
8
|
+
from typing import TYPE_CHECKING, Any, Optional, TypeGuard, Union
|
|
9
|
+
from typing_extensions import assert_never
|
|
10
10
|
from urllib.parse import parse_qs
|
|
11
11
|
|
|
12
12
|
from django.conf import settings
|
|
@@ -25,7 +25,7 @@ from strawberry.types.unset import UNSET
|
|
|
25
25
|
from .base import ChannelsConsumer
|
|
26
26
|
|
|
27
27
|
if TYPE_CHECKING:
|
|
28
|
-
from collections.abc import AsyncGenerator, Mapping
|
|
28
|
+
from collections.abc import AsyncGenerator, Callable, Mapping
|
|
29
29
|
|
|
30
30
|
from strawberry.http import GraphQLHTTPResponse
|
|
31
31
|
from strawberry.http.ides import GraphQL_IDE
|
{strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/channels/handlers/ws_handler.py
RENAMED
|
@@ -7,9 +7,9 @@ from typing import (
|
|
|
7
7
|
TYPE_CHECKING,
|
|
8
8
|
Optional,
|
|
9
9
|
TypedDict,
|
|
10
|
+
TypeGuard,
|
|
10
11
|
Union,
|
|
11
12
|
)
|
|
12
|
-
from typing_extensions import TypeGuard
|
|
13
13
|
|
|
14
14
|
from strawberry.http.async_base_view import AsyncBaseHTTPView, AsyncWebSocketAdapter
|
|
15
15
|
from strawberry.http.exceptions import NonJsonMessageReceived, NonTextMessageReceived
|
|
@@ -47,8 +47,6 @@ def upgrade(
|
|
|
47
47
|
|
|
48
48
|
raise typer.Exit(2)
|
|
49
49
|
|
|
50
|
-
python_target_version = tuple(int(x) for x in python_target.split("."))
|
|
51
|
-
|
|
52
50
|
transformer: ConvertUnionToAnnotatedUnion | UpdateImportsCodemod
|
|
53
51
|
|
|
54
52
|
if codemod == "update-imports":
|
|
@@ -57,7 +55,7 @@ def upgrade(
|
|
|
57
55
|
else:
|
|
58
56
|
transformer = ConvertUnionToAnnotatedUnion(
|
|
59
57
|
CodemodContext(),
|
|
60
|
-
use_pipe_syntax=
|
|
58
|
+
use_pipe_syntax=True,
|
|
61
59
|
use_typing_extensions=use_typing_extensions,
|
|
62
60
|
)
|
|
63
61
|
|
{strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/codegen/query_codegen.py
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from collections.abc import Iterable, Mapping, Sequence
|
|
3
|
+
from collections.abc import Callable, Iterable, Mapping, Sequence
|
|
4
4
|
from dataclasses import MISSING, dataclass
|
|
5
5
|
from enum import Enum
|
|
6
6
|
from functools import cmp_to_key, partial
|
|
@@ -8,7 +8,6 @@ from pathlib import Path
|
|
|
8
8
|
from typing import (
|
|
9
9
|
TYPE_CHECKING,
|
|
10
10
|
Any,
|
|
11
|
-
Callable,
|
|
12
11
|
Optional,
|
|
13
12
|
Union,
|
|
14
13
|
cast,
|
|
@@ -8,7 +8,6 @@ from dataclasses import dataclass
|
|
|
8
8
|
from typing import (
|
|
9
9
|
TYPE_CHECKING,
|
|
10
10
|
Any,
|
|
11
|
-
Callable,
|
|
12
11
|
Generic,
|
|
13
12
|
Optional,
|
|
14
13
|
TypeVar,
|
|
@@ -20,7 +19,14 @@ from .exceptions import WrongNumberOfResultsReturned
|
|
|
20
19
|
|
|
21
20
|
if TYPE_CHECKING:
|
|
22
21
|
from asyncio.events import AbstractEventLoop
|
|
23
|
-
from collections.abc import
|
|
22
|
+
from collections.abc import (
|
|
23
|
+
Awaitable,
|
|
24
|
+
Callable,
|
|
25
|
+
Hashable,
|
|
26
|
+
Iterable,
|
|
27
|
+
Mapping,
|
|
28
|
+
Sequence,
|
|
29
|
+
)
|
|
24
30
|
|
|
25
31
|
|
|
26
32
|
T = TypeVar("T")
|
|
@@ -244,7 +250,7 @@ async def dispatch_batch(loader: DataLoader, batch: Batch) -> None:
|
|
|
244
250
|
expected=len(batch), received=len(values)
|
|
245
251
|
)
|
|
246
252
|
|
|
247
|
-
for task, value in zip(batch.tasks, values):
|
|
253
|
+
for task, value in zip(batch.tasks, values, strict=True):
|
|
248
254
|
# Trying to set_result in a cancelled future would raise
|
|
249
255
|
# asyncio.exceptions.InvalidStateError
|
|
250
256
|
if task.future.cancelled():
|
|
@@ -6,7 +6,6 @@ from typing import (
|
|
|
6
6
|
TYPE_CHECKING,
|
|
7
7
|
Annotated,
|
|
8
8
|
Any,
|
|
9
|
-
Callable,
|
|
10
9
|
Generic,
|
|
11
10
|
Optional,
|
|
12
11
|
TypeVar,
|
|
@@ -24,6 +23,7 @@ from strawberry.types.unset import UNSET
|
|
|
24
23
|
|
|
25
24
|
if TYPE_CHECKING:
|
|
26
25
|
import inspect
|
|
26
|
+
from collections.abc import Callable
|
|
27
27
|
|
|
28
28
|
from strawberry.types.arguments import StrawberryArgument
|
|
29
29
|
|
|
@@ -5,11 +5,10 @@ import warnings
|
|
|
5
5
|
from typing import (
|
|
6
6
|
TYPE_CHECKING,
|
|
7
7
|
Any,
|
|
8
|
-
Callable,
|
|
9
8
|
Optional,
|
|
9
|
+
TypeGuard,
|
|
10
10
|
Union,
|
|
11
11
|
)
|
|
12
|
-
from typing_extensions import TypeGuard
|
|
13
12
|
|
|
14
13
|
from asgiref.sync import markcoroutinefunction
|
|
15
14
|
from django.core.serializers.json import DjangoJSONEncoder
|
|
@@ -37,7 +36,7 @@ from strawberry.http.typevars import (
|
|
|
37
36
|
from .context import StrawberryDjangoContext
|
|
38
37
|
|
|
39
38
|
if TYPE_CHECKING:
|
|
40
|
-
from collections.abc import AsyncIterator
|
|
39
|
+
from collections.abc import AsyncIterator, Callable
|
|
41
40
|
|
|
42
41
|
from django.template.response import TemplateResponse
|
|
43
42
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import os
|
|
2
2
|
import sys
|
|
3
3
|
import threading
|
|
4
|
+
from collections.abc import Callable
|
|
4
5
|
from types import TracebackType
|
|
5
|
-
from typing import Any,
|
|
6
|
+
from typing import Any, Optional, cast
|
|
6
7
|
|
|
7
8
|
from .exception import StrawberryException, UnableToFindExceptionSource
|
|
8
9
|
|
|
@@ -6,12 +6,12 @@ import sys
|
|
|
6
6
|
from dataclasses import dataclass
|
|
7
7
|
from functools import cached_property
|
|
8
8
|
from pathlib import Path
|
|
9
|
-
from typing import TYPE_CHECKING, Any,
|
|
9
|
+
from typing import TYPE_CHECKING, Any, Optional, cast
|
|
10
10
|
|
|
11
11
|
from strawberry.exceptions.exception_source import ExceptionSource
|
|
12
12
|
|
|
13
13
|
if TYPE_CHECKING:
|
|
14
|
-
from collections.abc import Sequence
|
|
14
|
+
from collections.abc import Callable, Sequence
|
|
15
15
|
from inspect import Traceback
|
|
16
16
|
|
|
17
17
|
from libcst import BinaryOperation, Call, CSTNode, FunctionDef
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import dataclasses
|
|
2
|
+
from collections.abc import Callable
|
|
2
3
|
from dataclasses import dataclass
|
|
3
4
|
from decimal import Decimal
|
|
4
5
|
from functools import cached_property
|
|
5
|
-
from typing import TYPE_CHECKING, Any,
|
|
6
|
+
from typing import TYPE_CHECKING, Any, Optional
|
|
6
7
|
from uuid import UUID
|
|
7
8
|
|
|
8
9
|
import pydantic
|
|
@@ -296,7 +297,7 @@ class PydanticCompat:
|
|
|
296
297
|
|
|
297
298
|
|
|
298
299
|
if IS_PYDANTIC_V2:
|
|
299
|
-
from
|
|
300
|
+
from typing import get_args, get_origin
|
|
300
301
|
|
|
301
302
|
from pydantic.v1.typing import is_new_type
|
|
302
303
|
from pydantic.v1.utils import lenient_issubclass, smart_deepcopy
|
|
@@ -5,7 +5,6 @@ import warnings
|
|
|
5
5
|
from typing import (
|
|
6
6
|
TYPE_CHECKING,
|
|
7
7
|
Any,
|
|
8
|
-
Callable,
|
|
9
8
|
Optional,
|
|
10
9
|
Union,
|
|
11
10
|
cast,
|
|
@@ -31,7 +30,7 @@ from strawberry.utils.typing import get_list_annotation, is_list
|
|
|
31
30
|
from .exceptions import MissingFieldsListError
|
|
32
31
|
|
|
33
32
|
if TYPE_CHECKING:
|
|
34
|
-
from collections.abc import Sequence
|
|
33
|
+
from collections.abc import Callable, Sequence
|
|
35
34
|
|
|
36
35
|
from strawberry.types.base import WithStrawberryObjectDefinition
|
|
37
36
|
|
{strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/experimental/pydantic/fields.py
RENAMED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import builtins
|
|
2
|
-
from
|
|
2
|
+
from types import UnionType
|
|
3
|
+
from typing import (
|
|
4
|
+
Annotated,
|
|
5
|
+
Any,
|
|
6
|
+
Union,
|
|
7
|
+
)
|
|
8
|
+
from typing import GenericAlias as TypingGenericAlias # type: ignore
|
|
3
9
|
|
|
4
10
|
from pydantic import BaseModel
|
|
5
11
|
|
|
@@ -14,18 +20,6 @@ from strawberry.experimental.pydantic.exceptions import (
|
|
|
14
20
|
)
|
|
15
21
|
from strawberry.types.base import StrawberryObjectDefinition
|
|
16
22
|
|
|
17
|
-
try:
|
|
18
|
-
from types import UnionType as TypingUnionType
|
|
19
|
-
except ImportError:
|
|
20
|
-
import sys
|
|
21
|
-
|
|
22
|
-
if sys.version_info < (3, 10):
|
|
23
|
-
TypingUnionType = ()
|
|
24
|
-
else:
|
|
25
|
-
raise
|
|
26
|
-
|
|
27
|
-
from typing import GenericAlias as TypingGenericAlias # type: ignore
|
|
28
|
-
|
|
29
23
|
|
|
30
24
|
def replace_pydantic_types(type_: Any, is_input: bool) -> Any:
|
|
31
25
|
if lenient_issubclass(type_, BaseModel):
|
|
@@ -55,7 +49,7 @@ def replace_types_recursively(
|
|
|
55
49
|
|
|
56
50
|
if isinstance(replaced_type, TypingGenericAlias):
|
|
57
51
|
return TypingGenericAlias(origin, converted)
|
|
58
|
-
if isinstance(replaced_type,
|
|
52
|
+
if isinstance(replaced_type, UnionType):
|
|
59
53
|
return Union[converted]
|
|
60
54
|
|
|
61
55
|
# TODO: investigate if we could move the check for annotated to the top
|
|
@@ -6,7 +6,6 @@ import warnings
|
|
|
6
6
|
from typing import (
|
|
7
7
|
TYPE_CHECKING,
|
|
8
8
|
Any,
|
|
9
|
-
Callable,
|
|
10
9
|
Optional,
|
|
11
10
|
cast,
|
|
12
11
|
)
|
|
@@ -36,7 +35,7 @@ from strawberry.types.type_resolver import _get_fields
|
|
|
36
35
|
|
|
37
36
|
if TYPE_CHECKING:
|
|
38
37
|
import builtins
|
|
39
|
-
from collections.abc import Sequence
|
|
38
|
+
from collections.abc import Callable, Sequence
|
|
40
39
|
|
|
41
40
|
from graphql import GraphQLResolveInfo
|
|
42
41
|
|
|
@@ -247,8 +246,6 @@ def type(
|
|
|
247
246
|
# https://github.com/python/cpython/issues/89961
|
|
248
247
|
if sys.version_info >= (3, 10, 1):
|
|
249
248
|
kwargs["kw_only"] = dataclasses.MISSING
|
|
250
|
-
else:
|
|
251
|
-
kwargs["init"] = False
|
|
252
249
|
|
|
253
250
|
cls = dataclasses.make_dataclass(
|
|
254
251
|
cls.__name__,
|
|
@@ -258,11 +255,6 @@ def type(
|
|
|
258
255
|
**kwargs, # type: ignore
|
|
259
256
|
)
|
|
260
257
|
|
|
261
|
-
if sys.version_info < (3, 10, 1):
|
|
262
|
-
from strawberry.utils.dataclasses import add_custom_init_fn
|
|
263
|
-
|
|
264
|
-
add_custom_init_fn(cls)
|
|
265
|
-
|
|
266
258
|
_process_type(
|
|
267
259
|
cls,
|
|
268
260
|
name=name,
|
|
@@ -7,7 +7,6 @@ from decimal import Decimal
|
|
|
7
7
|
from typing import (
|
|
8
8
|
TYPE_CHECKING,
|
|
9
9
|
Any,
|
|
10
|
-
Callable,
|
|
11
10
|
Optional,
|
|
12
11
|
Union,
|
|
13
12
|
cast,
|
|
@@ -74,6 +73,8 @@ except ImportError:
|
|
|
74
73
|
|
|
75
74
|
|
|
76
75
|
if TYPE_CHECKING:
|
|
76
|
+
from collections.abc import Callable
|
|
77
|
+
|
|
77
78
|
from mypy.nodes import ClassDef, Expression
|
|
78
79
|
from mypy.plugins import ( # type: ignore
|
|
79
80
|
AnalyzeTypeContext,
|
{strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/base_extension.py
RENAMED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
+
from collections.abc import Callable
|
|
3
4
|
from enum import Enum
|
|
4
|
-
from typing import TYPE_CHECKING, Any
|
|
5
|
+
from typing import TYPE_CHECKING, Any
|
|
5
6
|
|
|
6
7
|
from strawberry.utils.await_maybe import AsyncIteratorOrIterator, AwaitableOrValue
|
|
7
8
|
|
|
@@ -8,7 +8,6 @@ from asyncio import iscoroutinefunction
|
|
|
8
8
|
from typing import (
|
|
9
9
|
TYPE_CHECKING,
|
|
10
10
|
Any,
|
|
11
|
-
Callable,
|
|
12
11
|
NamedTuple,
|
|
13
12
|
Optional,
|
|
14
13
|
Union,
|
|
@@ -18,7 +17,7 @@ from strawberry.extensions import SchemaExtension
|
|
|
18
17
|
from strawberry.utils.await_maybe import AwaitableOrValue, await_maybe
|
|
19
18
|
|
|
20
19
|
if TYPE_CHECKING:
|
|
21
|
-
from collections.abc import AsyncIterator, Iterator
|
|
20
|
+
from collections.abc import AsyncIterator, Callable, Iterator
|
|
22
21
|
from types import TracebackType
|
|
23
22
|
|
|
24
23
|
from strawberry.extensions.base_extension import Hook
|
{strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/directives.py
RENAMED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from typing import TYPE_CHECKING, Any
|
|
3
|
+
from typing import TYPE_CHECKING, Any
|
|
4
4
|
|
|
5
5
|
from strawberry.extensions import SchemaExtension
|
|
6
6
|
from strawberry.types.nodes import convert_arguments
|
|
7
7
|
from strawberry.utils.await_maybe import await_maybe
|
|
8
8
|
|
|
9
9
|
if TYPE_CHECKING:
|
|
10
|
+
from collections.abc import Callable
|
|
11
|
+
|
|
10
12
|
from graphql import DirectiveNode, GraphQLResolveInfo
|
|
11
13
|
|
|
12
14
|
from strawberry.directive import StrawberryDirective
|
{strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/field_extension.py
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import itertools
|
|
4
|
-
from collections.abc import Awaitable
|
|
4
|
+
from collections.abc import Awaitable, Callable
|
|
5
5
|
from functools import cached_property
|
|
6
|
-
from typing import TYPE_CHECKING, Any,
|
|
6
|
+
from typing import TYPE_CHECKING, Any, Union
|
|
7
7
|
|
|
8
8
|
if TYPE_CHECKING:
|
|
9
|
-
from
|
|
9
|
+
from typing import TypeAlias
|
|
10
10
|
|
|
11
11
|
from strawberry.types import Info
|
|
12
12
|
from strawberry.types.field import StrawberryField
|
{strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/tracing/apollo.py
RENAMED
|
@@ -4,7 +4,7 @@ import dataclasses
|
|
|
4
4
|
import time
|
|
5
5
|
from datetime import datetime, timezone
|
|
6
6
|
from inspect import isawaitable
|
|
7
|
-
from typing import TYPE_CHECKING, Any,
|
|
7
|
+
from typing import TYPE_CHECKING, Any, Optional
|
|
8
8
|
|
|
9
9
|
from strawberry.extensions import SchemaExtension
|
|
10
10
|
from strawberry.extensions.utils import get_path_from_info
|
|
@@ -12,7 +12,7 @@ from strawberry.extensions.utils import get_path_from_info
|
|
|
12
12
|
from .utils import should_skip_tracing
|
|
13
13
|
|
|
14
14
|
if TYPE_CHECKING:
|
|
15
|
-
from collections.abc import Generator
|
|
15
|
+
from collections.abc import Callable, Generator
|
|
16
16
|
|
|
17
17
|
from graphql import GraphQLResolveInfo
|
|
18
18
|
|
{strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/tracing/datadog.py
RENAMED
|
@@ -3,7 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
import hashlib
|
|
4
4
|
from functools import cached_property
|
|
5
5
|
from inspect import isawaitable
|
|
6
|
-
from typing import TYPE_CHECKING, Any,
|
|
6
|
+
from typing import TYPE_CHECKING, Any, Optional
|
|
7
7
|
|
|
8
8
|
import ddtrace
|
|
9
9
|
from packaging import version
|
|
@@ -19,7 +19,7 @@ else:
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
if TYPE_CHECKING:
|
|
22
|
-
from collections.abc import Generator, Iterator
|
|
22
|
+
from collections.abc import Callable, Generator, Iterator
|
|
23
23
|
|
|
24
24
|
from graphql import GraphQLResolveInfo
|
|
25
25
|
|
{strawberry_graphql-0.283.3 → strawberry_graphql-0.284.1}/strawberry/extensions/tracing/utils.py
RENAMED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from typing import TYPE_CHECKING, Any
|
|
3
|
+
from typing import TYPE_CHECKING, Any
|
|
4
4
|
|
|
5
5
|
from strawberry.extensions.utils import is_introspection_field
|
|
6
6
|
from strawberry.resolvers import is_default_resolver
|
|
7
7
|
|
|
8
8
|
if TYPE_CHECKING:
|
|
9
|
+
from collections.abc import Callable
|
|
10
|
+
|
|
9
11
|
from graphql import GraphQLResolveInfo
|
|
10
12
|
|
|
11
13
|
|
|
@@ -6,12 +6,11 @@ from inspect import signature
|
|
|
6
6
|
from typing import (
|
|
7
7
|
TYPE_CHECKING,
|
|
8
8
|
Any,
|
|
9
|
-
Callable,
|
|
10
9
|
Optional,
|
|
10
|
+
TypeGuard,
|
|
11
11
|
Union,
|
|
12
12
|
cast,
|
|
13
13
|
)
|
|
14
|
-
from typing_extensions import TypeGuard
|
|
15
14
|
|
|
16
15
|
from lia import HTTPException, StarletteRequestAdapter
|
|
17
16
|
from starlette import status
|
|
@@ -41,6 +40,7 @@ if TYPE_CHECKING:
|
|
|
41
40
|
from collections.abc import (
|
|
42
41
|
AsyncIterator,
|
|
43
42
|
Awaitable,
|
|
43
|
+
Callable,
|
|
44
44
|
Sequence,
|
|
45
45
|
)
|
|
46
46
|
from enum import Enum
|