migrate to pydantic v2.0#168
Conversation
|
Oh hey. Sorry about the tests. It looks like the test environment isn't playing nice with external contributors. I'll work on fixing it |
|
Hi @GrandMoff100 ! I'd guessed that, but now i'm trying to fix sphinx documentation generation errors, do you have some clues on how to fix that error? I've never worked with sphinx docs :) |
|
I wonder if the autodoc for the pydantic models isn't working with v2. |
|
I think i fixed the As for the docs, i think we didn't properly migrate to For starters there's some method exclusions that should probably be changed to account for pydantic v2 methods now. I can't look into it atm, but here's the docs for autodoc pydantic if you could look into what changed with autodoc pydantic in response to pydantic v2. https://autodoc-pydantic.readthedocs.io/en/stable/users/usage.html let me know how it goes. |
dfd31ea to
8f98d30
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #168 +/- ##
==========================================
- Coverage 99.58% 99.58% -0.01%
==========================================
Files 20 20
Lines 965 961 -4
==========================================
- Hits 961 957 -4
Misses 4 4 ☔ View full report in Codecov by Sentry. |
|
Done with autodocs, pls review 😉 |
|
Yay! Reviewing now |
|
@kizill new release :) |

My home project (Telegram-bot + python backend for serving as our village metostation and infoservice) is written on FastAPI, which recently migrated to Pydantic 2.0. I'd like to see this project also updated to Pydantic 2.0.