allenai / mmda

multimodal document analysis
Apache License 2.0
158 stars 18 forks source link

Allows use of pydantic 2 by dependents. #283

Closed cmwilhelm closed 4 months ago

cmwilhelm commented 4 months ago

Some applications wants to use pydantic2 but have been blocked by strict constraint on pydantic1 in mmda. This changeset allows the basic library to be used with either major version (but preserves the 1.x requirement for specific models so as not to break anything in S2's SPP pipeline).