Skip to content

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

Open
@c-xlenz

Description

@c-xlenz

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()
´´´

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions