bluesky / event-model

data model for event-based data collection and analysis
https://blueskyproject.io/event-model
BSD 3-Clause "New" or "Revised" License
13 stars 29 forks source link

Move from pydantic version 1 to 2 #293

Closed evalott100 closed 3 months ago

evalott100 commented 5 months ago

Pydantic increased version from 1 to 2 after the work on BaseModel typed dict conversion was already complete: https://github.com/bluesky/event-model/issues/278

We should modify our BaseModels to be pydantic 2 compliant and see if there are any new pydantic 2 features we can make use of.

evalott100 commented 3 months ago

I did this in https://github.com/bluesky/event-model/pull/294 and entirely forgot