Source

Inheritance diagram of dbt_contracts.contracts.generators.source.SourcePropertiesGenerator

Classes

SourcePropertiesGenerator(*[, exclude, ...])

class dbt_contracts.contracts.generators.source.SourcePropertiesGenerator(*, exclude: Annotated[Sequence[Literal['description', 'columns']], BeforeValidator(func=to_tuple, json_schema_input_type=PydanticUndefined)] = (), filename: str = '_config.yml', depth: Annotated[int | None, Ge(ge=0)] = None, description: SetNodeDescription = SetNodeDescription(overwrite=True, terminator=None), columns: SetNodeColumns = SetNodeColumns(overwrite=True, add=True, remove=True, order=True))

Bases: NodePropertiesGenerator

model_post_init(context: Any, /) → None

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

It takes context as an argument since that’s what pydantic-core passes when calling it.

Args:

self: The BaseModel instance. context: The context.