When trying to generate Python client code using strawberry codegen
, I get RecursionError: maximum recursion depth exceeded
:
│ .pyenv/versions/venv/lib/python3.10/site-packages/strawberry/codegen/query_codegen.py:657 in │
│ <lambda> │
│ │
│ 654 │ │ │ wrapper = ( │
│ 655 │ │ │ │ GraphQLOptional │
│ 656 │ │ │ │ if wrapper is None │
│ ❱ 657 │ │ │ │ else lambda t: GraphQLOptional(wrapper(t)) # type: ignore[misc] │
│ 658 │ │ │ ) │
│ 659 │ │ │
│ 660 │ │ elif isinstance(type_, StrawberryList): │
│ │
│ ╭────────────────────────────────────── locals ──────────────────────────────────────╮ │
│ │ t = GraphQLObjectType( │ │
│ │ │ name='UpdateRecipientResultUpdateRecipientErrors', │ │
│ │ │ fields=[ │ │
│ │ │ │ GraphQLField( │ │
│ │ │ │ │ name='message', │ │
│ │ │ │ │ alias=None, │ │
│ │ │ │ │ type=GraphQLScalar(name='String', python_type=None), │ │
│ │ │ │ │ default_value=None │ │
│ │ │ │ ) │ │
│ │ │ ], │ │
│ │ │ graphql_typename=None │ │
│ │ ) │ │
│ │ wrapper = <function QueryCodegen._unwrap_type.<locals>.<lambda> at 0x7fba74bfad40> │ │
│ ╰────────────────────────────────────────────────────────────────────────────────────╯ │
Using Python 3.10 and strawberry 0.217.0
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too