strawberry icon indicating copy to clipboard operation
strawberry copied to clipboard

A GraphQL library for Python that leverages type annotations 🍓

Results 331 strawberry issues
Sort by recently updated
recently updated
newest added

I'll add a proper description later, this PR is just for testing the CI steps. Related: #2107 TODO: - [x] assert that documentation exists (via pytest) - [x] make all...

ok-to-preview
bot:has-release-file
bot:release-type-minor

## Description Closes #2015 Fixes false positives with the mypy plugin. Happened when `to_pydantic` was called on a type that was converted pydantic with all_fields=True. Also fixes the type signature...

bot:has-release-file
bot:release-type-patch

Hi all, I think adding documentation for LazyType would be a great idea. Just mentioning that it exists somewhere in the official docs would be very helpful. Circular dependencies are...

From: https://github.com/strawberry-graphql/strawberry/pull/2012

## Describe the Bug I introduced this bug in [0.118.0](https://github.com/strawberry-graphql/strawberry/commit/c80744570f2bf13404c92af1faf8891b2952e121) ``` class MyModel(BaseModel): item: str @strawberry_from_pydantic(model=MyModel, all_fields=True ) class StrawberryModel: ... StrawberryModel(item).to_pydantic() # mypy errors incorrectly ``` I should be...

bug

## Describe the Bug Strawberry doesn't resolve string type annotations. It works without `from __future__ import annotations`. ```python #!/usr/bin/env python from __future__ import annotations import strawberry import pydantic class PBook(pydantic.BaseModel):...

bug

## Describe the Bug if you register a generic class with different generic parameter as scaler override strawberry will allow registering only one. sample code can be found here: https://play.strawberry.rocks/?gist=061b5d7c79310d6ac8c23b3b35c93cff...

bug

## Description Given an SDL file, when one runs `strawberry import-schema > schema.py` One gets autogenerated code equivalent to the sdl dumped into `schema.py` file ## Types of Changes -...

bot:has-release-file
bot:release-type-minor

In python 3.10 you can use `slots=True` when applying the dataclasses decorator see https://docs.python.org/3.10/whatsnew/3.10.html#slots ```python from dataclasses import dataclass @dataclass(slots=True) class Birthday: name: str birthday: datetime.date ``` we should think...

feature-request

Myst seems quite interesting, it does support some stuff we have already built: https://myst-parser.readthedocs.io/en/latest/syntax/syntax.html Maybe we can start using it and update the website to use a parser for myst...

docs