Strawberry-graphql

Latest version: v0.235.0

Safety actively analyzes 638452 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 45 of 122

0.134.1

Not secure
--------------------

This release fixes an issue that prevented using lazy types inside
generic types.

The following is now allowed:

python
T = TypeVar("T")

TypeAType = Annotated["TypeA", strawberry.lazy("tests.schema.test_lazy.type_a")]


strawberry.type
class Edge(Generic[T]):
node: T


strawberry.type
class Query:
users: Edge[TypeAType]


Contributed by [Patrick Arminio](https://github.com/patrick91) via [PR #2254](https://github.com/strawberry-graphql/strawberry/pull/2254/)

0.134.0

Not secure
--------------------

These release allow you to define a different `url` in the `GraphQLTestClient`, the default is "/graphql/".

Here's an example with Starlette client:
python
import pytest

from starlette.testclient import TestClient
from strawberry.asgi.test import GraphQLTestClient


pytest.fixture
def graphql_client() -> GraphQLTestClient:
return GraphQLTestClient(
TestClient(app, base_url="http://localhost:8000"), url="/api/"
)


Contributed by [Etty](https://github.com/estyxx) via [PR #2238](https://github.com/strawberry-graphql/strawberry/pull/2238/)

0.133.7

Not secure
--------------------

This release fixes a type issue when passing `scalar_overrides` to `strawberry.Schema`

Contributed by [Patrick Arminio](https://github.com/patrick91) via [PR #2251](https://github.com/strawberry-graphql/strawberry/pull/2251/)

0.133.6

Not secure
--------------------

Fix support for arguments where `arg.type=LazyType["EnumType"]`

Contributed by [Paulo Costa](https://github.com/paulo-raca) via [PR #2245](https://github.com/strawberry-graphql/strawberry/pull/2245/)

0.133.5

Not secure
--------------------

Updated `unset` import, from `strawberry.arguments` to `strawberry.unset` in codebase.

This will prevent strawberry from triggering its own warning on deprecated imports.

Contributed by [dependabot](https://github.com/dependabot) via [PR #2219](https://github.com/strawberry-graphql/strawberry/pull/2219/)

0.133.4

Not secure
--------------------

This release fixes the type of strawberry.federation.field,
this will prevent errors from mypy and pyright when doing the following:

python
strawberry.federation.type(keys=["id"])
class Location:
id: strawberry.ID

the following field was reporting an error in mypy and pylance
celestial_body: CelestialBody = strawberry.federation.field(
resolver=resolve_celestial_body
)


Contributed by [Patrick Arminio](https://github.com/patrick91) via [PR #2222](https://github.com/strawberry-graphql/strawberry/pull/2222/)

Page 45 of 122

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.