graphql-python / graphql-python/graphene-pydantic

TypeError: Registry.register_object_field() got an unexpected keyword argument 'model'

Open
#107 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
249
Forks
47
PR merge metrics
No merged PRs in 30d

Description

when trying to build a model, I am getting the error:

TypeError: Registry.register_object_field() got an unexpected keyword argument 'model'

checked the method and it does not have "model" as argument... so the error seems to be correct. The call of the method not.
Any advice?

here is a minimalistic example:

´´´
class A(pydantic.BaseModel):
x: str | None = None
y: list["A"] | None = None

class P_A(PydanticInputObjectType):
class Meta:
model = A

P_A.resolve_placeholders()
´´´

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.