class documentation

Checks for whitespace errors in text content.

Method __init__ Initialize whitespace checker.
Method check_content Check content for whitespace errors.
Method check_line Check a single line for whitespace errors.
Instance Variable enabled_errors Undocumented
Instance Variable tab_width Undocumented
def __init__(self, enabled_errors: set[str], tab_width: int = 8):

Initialize whitespace checker.

Parameters
enabled_errors:set[str]Set of error types to check for
tab_width:intWidth of tab character for indentation checking
def check_content(self, content: bytes) -> list[tuple[str, int]]:

Check content for whitespace errors.

Parameters
content:bytesFile content to check
Returns
list[tuple[str, int]]List of (error_type, line_number) tuples
def check_line(self, line: bytes, line_num: int) -> list[tuple[str, int]]:

Check a single line for whitespace errors.

Parameters
line:bytesLine content (without newline)
line_num:intLine number (1-based)
Returns
list[tuple[str, int]]List of (error_type, line_number) tuples
enabled_errors =

Undocumented

tab_width =

Undocumented