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.197.0 #90

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps strawberry-graphql from 0.190.0 to 0.197.0.

Release notes

Sourced from strawberry-graphql's releases.

🍓 0.197.0

This release removes support for Python 3.7 as its end of life was on 27 Jun 2023.

This will allow us to reduce the number of CI jobs we have, and potentially use newer features of Python. ⚡

Releases contributed by @​devkral via #2907

🍓 0.196.2

This release fixes an issue when trying to use Annotated[strawberry.auto, ...] on python 3.10 or older, which got evident after the fix from 0.196.1.

Previously we were throwing the type away, since it usually is Any, but python 3.10 and older will validate that the first argument passed for Annotated is callable (3.11+ does not do that anymore), and StrawberryAuto is not.

This changes it to keep that Any, which is also what someone would expect when resolving the annotation using our custom eval_type function.

Releases contributed by @​bellini666 via #2990

🍓 0.196.1

This release fixes an issue where annotations resolution for auto and lazy fields using Annotated where not preserving the remaining arguments because of a typo in the arguments filtering.

Releases contributed by @​bellini666 via #2983

🍓 0.196.0

This release adds support for union with a single member, they are useful for future proofing your schema in cases you know a field will be part of a union in future.

import strawberry

from typing import Annotated

@​strawberry.type class Audio: duration: int

@​strawberry.type class Query: # note: Python's Union type doesn't support single members, # Union[Audio] is exactly the same as Audio, so we use # use Annotated and strawberry.union to tell Strawberry this is </tr></table>

... (truncated)

Changelog

Sourced from strawberry-graphql's changelog.

0.197.0 - 2023-07-30

This release removes support for Python 3.7 as its end of life was on 27 Jun 2023.

This will allow us to reduce the number of CI jobs we have, and potentially use newer features of Python. ⚡

Contributed by Alexander via [PR #2907](strawberry-graphql/strawberry#2907)

0.196.2 - 2023-07-28

This release fixes an issue when trying to use Annotated[strawberry.auto, ...] on python 3.10 or older, which got evident after the fix from 0.196.1.

Previously we were throwing the type away, since it usually is Any, but python 3.10 and older will validate that the first argument passed for Annotated is callable (3.11+ does not do that anymore), and StrawberryAuto is not.

This changes it to keep that Any, which is also what someone would expect when resolving the annotation using our custom eval_type function.

Contributed by Thiago Bellini Ribeiro via [PR #2990](strawberry-graphql/strawberry#2990)

0.196.1 - 2023-07-26

This release fixes an issue where annotations resolution for auto and lazy fields using Annotated where not preserving the remaining arguments because of a typo in the arguments filtering.

Contributed by Thiago Bellini Ribeiro via [PR #2983](strawberry-graphql/strawberry#2983)

0.196.0 - 2023-07-26

This release adds support for union with a single member, they are useful for future proofing your schema in cases you know a field will be part of a union in future.

import strawberry

from typing import Annotated

</tr></table>

... (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 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 1 year ago

Superseded by #93.