poprox_concepts.domain.profile#
Classes
|
- class poprox_concepts.domain.profile.InterestProfile(*, profile_id=None, click_history, click_topic_counts=None, click_locality_counts=None, onboarding_topics, **extra_data)#
Bases:
BaseModel
- Parameters:
- model_config: ClassVar[ConfigDict] = {'extra': 'allow'}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_fields: ClassVar[dict[str, FieldInfo]] = {'click_history': FieldInfo(annotation=list[Click], required=True), 'click_locality_counts': FieldInfo(annotation=Union[dict[str, int], NoneType], required=False, default=None), 'click_topic_counts': FieldInfo(annotation=Union[dict[str, int], NoneType], required=False, default=None), 'onboarding_topics': FieldInfo(annotation=list[AccountInterest], required=True), 'profile_id': FieldInfo(annotation=Union[UUID, NoneType], required=False, default=None)}#
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.