Injecting context information to user models shall be migrated to ContextVars according to this solution.
This has 2 advantages:
- the custom base class can be removed
- it looks like pydantic v2 also goes this direction
Need to check whether they can be shared across multiple modules as sphinx-modeling creates them and the user models consume them.
Injecting context information to user models shall be migrated to
ContextVarsaccording to this solution.This has 2 advantages:
Need to check whether they can be shared across multiple modules as sphinx-modeling creates them and the user models consume them.