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

Add Hydra + Pydantic How-To #433

Open
rsokl opened this issue Mar 25, 2023 · 0 comments
Open

Add Hydra + Pydantic How-To #433

rsokl opened this issue Mar 25, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@rsokl
Copy link
Contributor

rsokl commented Mar 25, 2023

Using the store decorator pattern makes this simple/trivial

from hydra_zen import store
from pydantic import BaseModel

@store(name="zoom", y="hi")
class Foo(BaseModel):
    x: int
    y: str
@rsokl rsokl added the documentation Improvements or additions to documentation label Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant