Skip to main content

pretty_py_line_errors

No overview available.

def pretty_py_line_errors(
line_info: tuple
) - > string

Formats Python traceback line information into a human-readable string for error reporting.

Parameters

NameTypeDescription
line_infotupleA tuple containing the filename, line number, function name, and text of the source line.

Returns

TypeDescription
stringA formatted string containing the file path, line number, and function name where the error occurred.