class documentation

class TerminalFormatter: (source)

View In Hierarchy

Undocumented

Static Method get_caret get the caret pointing to each of the item in the col :param warning_items: items presented in a line :param white_space_number: the total number of leading space :return: str: full caret _str
Static Method get_src_line Undocumented
Static Method sort_item_by_col Undocumented
Method __init__ Undocumented
Method get_error_result_on_path Undocumented
Method get_full_errors Undocumented
Method get_full_traceback format a complete traceback str, that depends on the verbose config :param warning_items: items presented in a line :param last_file: the actual file that warning_items collected :return: str: formatted trace str...
Method get_items_value_repr format a full representation of items and their values. E.g.: x = 1 {<int>} :param warning_items: items presented in a line :return: str: the items with their values
Method get_summary Undocumented
Method get_traceback_item Undocumented
Method get_traceitem_list Undocumented
Instance Variable config Undocumented
Instance Variable realdir Undocumented
Instance Variable result Undocumented
Instance Variable tempdir Undocumented
Instance Variable warning_count Undocumented
@staticmethod
def get_caret(warning_items, white_space_number=0): (source)

get the caret pointing to each of the item in the col :param warning_items: items presented in a line :param white_space_number: the total number of leading space :return: str: full caret _str

@staticmethod
def get_src_line(source_str, lineno, strip=True): (source)

Undocumented

@staticmethod
def sort_item_by_col(item): (source)

Undocumented

def __init__(self, realdir, result, config=None, tempdir=None): (source)

Undocumented

def get_error_result_on_path(self, source_str, collected_result, last_file=None): (source)

Undocumented

def get_full_errors(self): (source)

Undocumented

def get_full_traceback(self, warning_items, last_file): (source)

format a complete traceback str, that depends on the verbose config :param warning_items: items presented in a line :param last_file: the actual file that warning_items collected :return: str: formatted trace str

def get_items_value_repr(self, warning_items): (source)

format a full representation of items and their values. E.g.: x = 1 {<int>} :param warning_items: items presented in a line :return: str: the items with their values

def get_summary(self): (source)

Undocumented

def get_traceback_item(self, trace): (source)

Undocumented

def get_traceitem_list(self, trace): (source)

Undocumented

config = (source)

Undocumented

realdir = (source)

Undocumented

result = (source)

Undocumented

tempdir = (source)

Undocumented

warning_count: int = (source)

Undocumented