Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
c-xlenz opened this issue Nov 14, 2024 · 2 comments

Comments

@c-xlenz
Copy link

c-xlenz commented Nov 14, 2024

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

@c-xlenz
Copy link
Author

c-xlenz commented Nov 14, 2024

I think it is the same as here:
#104

@iromanov-nk
Copy link

i answered here in #104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants