text_lint.sequencers.patterns.loop.LinearLoopPattern

class text_lint.sequencers.patterns.loop.LinearLoopPattern(start: int, end: int)[source]

Bases: LinearPattern

Linear loop pattern for SequencerBase instances.

__init__(start: int, end: int) None[source]

Initialize LinearLoopPattern instances.

Parameters:
  • start (int) – The index to start repeating at.

  • end (int) – The index to stop repeating at.

adjust(offset: int) None[source]

Adjust the pattern based on inserted data.

increment(sequencer: SequencerBase[Any]) None[source]

Advance the index for the given sequencer instance.