text_lint.operations.assertions.assert_sequence_begins.AssertSequenceBegins
- class text_lint.operations.assertions.assert_sequence_begins.AssertSequenceBegins(name: str, assertions: List[AssertionBase], count: int)[source]
Bases:
AssertionBaseInform the linter to start repeating a list of assertions.
- class Parameters[source]
Bases:
ParametersParameter validation for this operation.
- __init__(name: str, assertions: List[AssertionBase], count: int) None[source]
Initialize AssertSequenceBegins instances.
- Parameters:
name (str) – The configured name of this assertion.
assertions (List[AssertionBase]) – The sequence of assertions that is starting.
count (int) – The number of times the sequence should repeat.
- Raises:
TypeError
- apply(state: AssertionState) None[source]
Apply the AssertSequenceBegins assertion logic.
- schema_validator(schema_assertion_index: int, schema_assertion_instances: List[AssertionBase], schema_assertion_definitions: List[AliasYamlOperation], schema: Schema) None[source]
Validate this operation in the context of an entire loaded schema.