text_lint.sequencers.bases.operator_base.OperatorBase

class text_lint.sequencers.bases.operator_base.OperatorBase(operations: List[TypeOperation])[Quellcode]

Bases: SequencerBase[TypeOperation]

A base class for iterating over discrete operations.

__init__(operations: List[TypeOperation]) None[Quellcode]

Initialize OperatorBase instances.

Parameter:

operations (List[TypeOperation]) – The operations this sequencer iterates over.

__next__() TypeOperation[Quellcode]

Return the next operation in the sequence.

Rückgabetyp:

TypeOperation

insert(entities: List[TypeOperation], count: int) None[Quellcode]

Insert a sequence of operations at the current index.

Parameter:
  • entities (List[TypeOperation]) – The operations to insert into the sequencer.

  • count (int) – The number of times these new operations repeat.