styling#

The py_fatigue.styling module collects all the functions and classes related with better displaying i/o operations.

class py_fatigue.styling.TermColors#

Color set for terminal outputs

py_fatigue.styling.py_fatigue_formatwarning(message: Warning | str, category: Type[Warning], filename: str, lineno: int, line: str | None = None) str#

Monkeypatch the warning messages.

Parameters:
  • message (Union[Warning, str]) – The warning message.

  • category (Type[Warning]) – The warning category.

  • filename (str) – The file name.

  • lineno (int) – The warning line number.

  • line (Optional[str], optional) – The warning line, by default None

Returns:

Monkeypatched warning message

Return type:

str