Skip to content

Commit

Permalink
add pretty_exceptions_width to DeveloperExceptionConfig
Browse files Browse the repository at this point in the history
adding new attribute in DeveloperExceptionConfig to allow
setting width for rick traceback.
  • Loading branch information
indiVar0508 committed Sep 18, 2023
1 parent e0b207f commit f20336c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions typer/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f20336c

Please sign in to comment.