James Chua

Results 8 issues of James Chua

## 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

## 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

Add a plugin to the [codegen feature](https://strawberry.rocks/docs/codegen/query-codegen) so that we can turns queries into pydantic models. and then convert it to the strawberry type with the decorator. ## Feature Request...

feature-request

## Feature Request Type - [ ] Core functionality - [x ] Alteration (enhancement/optimization) of existing feature(s) - [ ] New behavior ## Description Currently the function signature of from_pydantic...

Added a CI pipeline to run tests. Should catch errors like this as well. https://github.com/openai/openai-python/issues/199 Example on my fork here https://github.com/thejaminator/openai-python/pull/1 The maintainers of this repo will need to set...

Initial work that allows you to use pydantic classes out of the box, without converting it into a strawberry dataclass type. Start of https://github.com/strawberry-graphql/strawberry/issues/2181 What works - Basic usage of...

Try it out with e.g. 2 gpus. ``` elk elicit huggyllama/llama-65b imdb --num_gpus 2 --gpus_per_model 2 --int8 true ``` If you want to say "only use gpus that have 30gb...

> > Makes sense, do you think we can also add this? https://github.com/strawberry-graphql/strawberry/blob/main/strawberry/object_type.py#L152-L153 > > this should make it work slightly better with pyright > > does that work out...