Skip to main content

BlockModelAttributes

GitHub source

BlockModelAttributes

evo.objects.typed.attributes.BlockModelAttributes

A collection of attributes on a block model with pretty-printing support.

exists

exists: bool

Whether this attribute exists on the block model.

Returns:

TypeDescription
boolTrue for existing attributes.

from_schema

from_schema(attributes_list: list[dict], block_model: BlockModel | None = None) -> BlockModelAttributes

Parse block model attributes from the schema format.

Parameters:

NameTypeDescriptionDefault
attributes_listlist[dict]List of attribute dictionaries from the schema.required
block_modelBlockModel | NoneOptional parent BlockModel for back-references.None

Returns:

TypeDescription
BlockModelAttributesA BlockModelAttributes collection.

What is the reason for your feedback?