From f20336c162196bfc0f6d4dd9874d0aab6438c569 Mon Sep 17 00:00:00 2001 From: indivar Date: Sun, 8 Jan 2023 00:37:47 +0530 Subject: [PATCH] add `pretty_exceptions_width` to DeveloperExceptionConfig adding new attribute in DeveloperExceptionConfig to allow setting width for rick traceback. --- typer/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/typer/models.py b/typer/models.py index 53fca273b4..93fad3b40d 100644 --- a/typer/models.py +++ b/typer/models.py @@ -517,7 +517,9 @@ def __init__( pretty_exceptions_enable: bool = True, pretty_exceptions_show_locals: bool = True, pretty_exceptions_short: bool = True, + pretty_exceptions_width: int = 100, ) -> None: self.pretty_exceptions_enable = pretty_exceptions_enable self.pretty_exceptions_show_locals = pretty_exceptions_show_locals self.pretty_exceptions_short = pretty_exceptions_short + self.pretty_exceptions_width = pretty_exceptions_width