Skip to content

Introduce ContextVars #24

@ubmarco

Description

@ubmarco

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions