HumanSignal / HumanSignal/label-studio
Pydantic 2.0 Migration / Support
- Dominant language
- TypeScript
- Stars
- 28.3k
- Forks
- 3.7k
- Avg merge
- 14h
- Merged PRs (30d)
- 15
Description
Wondering whether the LS team have a Pydantic 2.0 migration on the roadmap for this year? As you probably know, security + maintenance fixes/support [will stop for Pydantic 1.x this year](https://docs.pydantic.dev/2.0/version-compatibility/#pydantic-v1-support).
At ZenML we're going to be migrating to use 2.x in the coming weeks and since there's a hard incompatibility between the local label_studio since it [has a hard `pydantic = "<=1.11.0,>=1.7.3"` dependency](https://github.com/HumanSignal/label-studio/blob/fbb30fa27cd24dabdee85acb021372fc28c160b7/pyproject.toml#L183C1-L183C30).
I realise that [the Python SDK is much more relaxed](https://github.com/HumanSignal/label-studio-sdk/blob/f7783935911c64b0b64bca98ee861904391acdae/requirements.txt#L3) which probably is enough for us to work around. We'd just have to remove support for running LS locally in our examples / use case and instead suggest people deploy LS somewhere.
I'm wondering, though, whether there is a plan to migrate to Pydantic 2.x. Thanks!
Contributor guide
Assessment
This issue has not been assessed yet.