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

RuntimeError: no validator found for <class '__main__.Node'>, see arbitrary_types_allowed in Config #43

Open
LINYiyangCUHK opened this issue Oct 2, 2024 · 1 comment

Comments

@LINYiyangCUHK
Copy link

RuntimeError: no validator found for <class 'main.Node'>, see arbitrary_types_allowed in Config

@Jiancong
Copy link

Jiancong commented Oct 19, 2024

RuntimeError: no validator found for <class 'main.Node'>, see arbitrary_types_allowed in Config

Add following code snippit

class BaseModel(PydanticBaseModel):
    class Config:
        arbitrary_types_allowed = True

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