widgetti / solara

A Pure Python, React-style Framework for Scaling Your Jupyter and Web Apps
https://solara.dev
MIT License
1.6k stars 104 forks source link

fix: support pydantic 1 and 2 in reactive vars #601

Closed maartenbreddels closed 3 weeks ago

maartenbreddels commented 3 weeks ago

We supported pydantic 1 and 2, using .dict() which was deprecated in pydantic 2. It is also semantically more correct to use .copy, which in pydantic 2 is model_copy. We now use copy/model_copy depending on the pydantic version.

render[bot] commented 3 weeks ago

Your Render PR Server URL is https://solara-stable-pr-601.onrender.com.

Follow its progress at https://dashboard.render.com/web/srv-coch0o821fec73f83310.