text_lint.operations.assertions.assert_sequence_ends.AssertSequenceEnds

class text_lint.operations.assertions.assert_sequence_ends.AssertSequenceEnds(name: str)[source]

Bases: AssertionBase

Inform the linter to stop repeating assertions.

class Parameters[source]

Bases: object

Parameter validation for this operation.

__init__(name: str) None[source]

Initialize AssertSequenceEnds instances.

Parameters:

name (str) – The configured name of this assertion.

Raises:

TypeError

apply(state: AssertionState) None[source]

Apply the AssertSequenceEnds assertion logic.