pydantic-pycharm-plugin
pydantic-pycharm-plugin copied to clipboard
Support Pydantic V2
Pydantic V2 changes some behavior. This issue should list all related issues and PRs related to V2.
- [x] Add an error when
__root__is set in the model. #696 - [ ] Strict mode type-checking.
- [ ] Validator without a model.
- [ ] Required and Nullable behavior like dataclass
- [ ] Aliases in Field
- [x] Warning removed methods.
- [ ] Respect conversion types table in type-checking.
- [ ] Suggest running migration tools for v2
- [x] Jump to v2 migration documents
- [ ] Run v2 migration tool
Thanks so much for pinging me @koxudaxi.
In general this sounds great, a few pointers:
- https://github.com/pydantic/pydantic/pull/5343 contains what migration guide we have, it'll be improved today ahead of the first alpha
- https://github.com/pydantic/pydantic/pull/5324 contains code for the conversion table that you should ultimately be able to use when marking arguments as valid or invalid, please comment their if you have any feedback
- https://github.com/pydantic/pydantic/issues/5013 for details on an auto-migration tool
- most of the warnings on removed methods should already work since pycharm spots
DeprecationWarningand puts a line through the function.
@samuelcolvin I'm checking the links. Btw, Thank you for sponsoring me :bow:
No problem, thank you for everything you've done.