betty.entity.collection.pool module

Entity pools.

final class betty.entity.collection.pool.EntityPool

Bases: MultipleTypesEntityCollection

An entity pool can contain entities of a wide variety of types.

__init__(*entities: Entity)
unchecked() Iterator[None]

Disable the addition entities’ associates when adding those entities to the ancestry.

It is the caller’s responsibility to ensure all associates are added to the ancestry. If this is done, using this context manager improves performance.