text_lint.operations.assertions.assert_sequence_begins.AssertSequenceBegins

class text_lint.operations.assertions.assert_sequence_begins.AssertSequenceBegins(name: str, assertions: List[AssertionBase], count: int)[Quellcode]

Bases: AssertionBase

Inform the linter to start repeating a list of assertions.

class Parameters[Quellcode]

Bases: Parameters

Parameter validation for this operation.

__init__(name: str, assertions: List[AssertionBase], count: int) None[Quellcode]

Initialize AssertSequenceBegins instances.

Parameter:
  • 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[Quellcode]

Apply the AssertSequenceBegins assertion logic.

schema_validator(schema_assertion_index: int, schema_assertion_instances: List[AssertionBase], schema_assertion_definitions: List[AliasYamlOperation], schema: Schema) None[Quellcode]

Validate this operation in the context of an entire loaded schema.