betty.entity.collection.single module

Single-type entity collections.

class betty.entity.collection.single.SingleTypeEntityCollection

Bases: EntityCollection, Generic

Collect entities of a single type.

__init__(*entities: TargetT)
add(*entities: TargetT) None

Add the given entities.

clear() None

Clear all entities from the collection.

remove(*entities: TargetT) None

Remove the given entities.