CustomModelWrapper.model_post_init#

CustomModelWrapper.model_post_init(context, /)[fuente]#

This function is meant to behave like a BaseModel method to initialize private attributes.

Toma el contexto como un argumento, ya que eso es lo que pydantic-core pasa al llamarlo.

Args:

self: La instancia de BaseModel. context: El contexto.