DiamondLightSource / coniql

Control system interface in GraphQL
Apache License 2.0
6 stars 4 forks source link

Bump strawberry-graphql from 0.190.0 to 0.232.0 #115

Closed dependabot[bot] closed 5 months ago

dependabot[bot] commented 5 months ago

Bumps strawberry-graphql from 0.190.0 to 0.232.0.

Release notes

Sourced from strawberry-graphql's releases.

🍓 0.232.0

This release improves type checking for async resolver functions when used as strawberry.field(resolver=resolver_func).

Now doing this will raise a type error:

import strawberry

def some_resolver() -> int: return 0

@​strawberry.type class User: # Note the field being typed as str instead of int name: str = strawberry.field(resolver=some_resolver)

Releases contributed by @​bricker via #3241

🍓 0.231.1

Fixes an issue where lazy annotations raised an error when used together with a List

Releases contributed by @​jeich via #3388

🍓 0.231.0

When calling the CLI without all the necessary dependencies installed, a MissingOptionalDependenciesError will be raised instead of a ModuleNotFoundError. This new exception will provide a more helpful hint regarding how to fix the problem.

Releases contributed by @​parafoxia via #3511

🍓 0.230.0

This release adds support for @oneOf on input types! 🎉 You can use one_of=True on input types to create an input type that should only have one of the fields set.

import strawberry

@​strawberry.input(one_of=True) class ExampleInputTagged: a: str | None = strawberry.UNSET b: int | None = strawberry.UNSET

... (truncated)

Changelog

Sourced from strawberry-graphql's changelog.

0.232.0 - 2024-05-25

This release improves type checking for async resolver functions when used as strawberry.field(resolver=resolver_func).

Now doing this will raise a type error:

import strawberry

def some_resolver() -> int: return 0

@​strawberry.type class User: # Note the field being typed as str instead of int name: str = strawberry.field(resolver=some_resolver)

Contributed by Bryan Ricker via [PR #3241](strawberry-graphql/strawberry#3241)

0.231.1 - 2024-05-25

Fixes an issue where lazy annotations raised an error when used together with a List

Contributed by jeich via [PR #3388](strawberry-graphql/strawberry#3388)

0.231.0 - 2024-05-25

When calling the CLI without all the necessary dependencies installed, a MissingOptionalDependenciesError will be raised instead of a ModuleNotFoundError. This new exception will provide a more helpful hint regarding how to fix the problem.

Contributed by Ethan Henderson via [PR #3511](strawberry-graphql/strawberry#3511)

0.230.0 - 2024-05-22

This release adds support for @oneOf on input types! 🎉 You can use one_of=True on input types to create an input type that should only have one of the fields set.

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 5 months ago

Superseded by #119.