Skip to content

Commit f20336c

Browse files
committed
add pretty_exceptions_width to DeveloperExceptionConfig
adding new attribute in DeveloperExceptionConfig to allow setting width for rick traceback.
1 parent e0b207f commit f20336c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

typer/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,9 @@ def __init__(
517517
pretty_exceptions_enable: bool = True,
518518
pretty_exceptions_show_locals: bool = True,
519519
pretty_exceptions_short: bool = True,
520+
pretty_exceptions_width: int = 100,
520521
) -> None:
521522
self.pretty_exceptions_enable = pretty_exceptions_enable
522523
self.pretty_exceptions_show_locals = pretty_exceptions_show_locals
523524
self.pretty_exceptions_short = pretty_exceptions_short
525+
self.pretty_exceptions_width = pretty_exceptions_width

0 commit comments

Comments
 (0)