text_lint.sequencers.textfile.TextFileSequencer
- class text_lint.sequencers.textfile.TextFileSequencer(file_path: str)[Quellcode]
Bases:
SequencerBase[str]Iterator that returns the lines of a text file.
- __init__(file_path: str) None[Quellcode]
Initialize TextFileSequencer instances.
- Parameter:
file_path (str) – The text file to load lines from.
- __next__() str[Quellcode]
Return the next line in the text file.
- Rückgabetyp:
str
- configure(schema: Schema) None[Quellcode]
Apply schema configuration to the text file.
- Parameter:
schema (Schema) – The schema containing the required configuration.