Annotation

class app.portfolio.models.annotation.annotation.Annotation[source]

Bases: EmptyClass, Entity[TypeVar, TypeVar], Generic

Inheritance diagram of Annotation

Inheritance Diagram for Annotation

Methods

create(entity_or_uid, /, **kwargs)

model_post_init(context)

Attributes

model_config

Configuration for the model, should be a dictionary conforming to ConfigDict.

instance_name

uid

entity_log

entity_dependents

instance_parent_weakref

classmethod create(entity_or_uid: Entity | EntityRecord | Uid, /, **kwargs) T[source]
Parameters:

entity_or_uid (Entity | EntityRecord | Uid)

Return type:

T

model_config: ClassVar[ConfigDict] = {'extra': 'allow', 'frozen': True, 'serialize_by_alias': True, 'validate_assignment': True, 'validate_by_alias': True}

Configuration for the model, should be a dictionary conforming to ConfigDict.

model_post_init(context: Any) None
Parameters:

context (Any)

Return type:

None