EntityImpl

class app.portfolio.models.entity.entity_impl.EntityImpl[source]

Bases: EmptyClass, Generic

Inheritance diagram of EntityImpl

Inheritance Diagram for EntityImpl

Methods

get_annotation(cls)

get_annotation_record(cls)

get_annotation_records(cls)

get_annotation_uids(cls)

get_annotations(cls)

iter_annotation_records(cls)

iter_annotation_uids(cls)

iter_annotations(cls)

Attributes

context

context_or_none

decimal

forex_provider

property context: Context
property context_or_none: Context | None
property decimal: DecimalFactory
property forex_provider: ForexProvider
get_annotation(cls: type[T]) T | None[source]
Parameters:

cls (type[T])

Return type:

T | None

get_annotation_record(cls: type[T]) T | None[source]
Parameters:

cls (type[T])

Return type:

T | None

get_annotation_records(cls: type[T]) Sequence[source]
Parameters:

cls (type[T])

Return type:

Sequence

get_annotation_uids(cls: type[Annotation]) Sequence[Uid][source]
Parameters:

cls (type[Annotation])

Return type:

Sequence[Uid]

get_annotations(cls: type[T]) Sequence[source]
Parameters:

cls (type[T])

Return type:

Sequence

iter_annotation_records(cls: type[T]) Iterable[source]
Parameters:

cls (type[T])

Return type:

Iterable

iter_annotation_uids(cls: type[Annotation]) Iterable[Uid][source]
Parameters:

cls (type[Annotation])

Return type:

Iterable[Uid]

iter_annotations(cls: type[T]) Iterable[source]
Parameters:

cls (type[T])

Return type:

Iterable