betty.config.collections.sequence module¶
Define and provide sequences of betty.config.Configuration instances.
- class betty.config.collections.sequence.ConfigurationSequence[source]¶
Bases:
ConfigurationCollection[int,_ConfigurationT],Generic[_ConfigurationT]A sequence of configuration values.
To test your own subclasses, use
betty.test_utils.config.collections.sequence.ConfigurationSequenceTestBase.- append(*configurations: _ConfigurationT) None[source]¶
Append the given values to the end of the sequence.
- insert(index: int, *configurations: _ConfigurationT) None[source]¶
Insert the given values at the given index.
- load(dump: Dump) None[source]¶
Load a serialized data dump into
self.- Raises:
betty.assertion.error.AssertionFailed – Raised if the dump is invalid.
- prepend(*configurations: _ConfigurationT) None[source]¶
Prepend the given values to the beginning of the sequence.