[BUG] Overwriting locals_max_length
and locals_max_string
does not affect printed Traceback
#3301
Open
2 tasks done
Labels
Describe the bug
Initializing a
Traceback
object with a non-defaultlocals_max_length
orlocals_max_string
does not affected the locals when printed. MRE below:This prints the following traceback:
Which, according to the docs, setting either limit to
None
should disable truncation and remove the...
and... + 42
.The problem is not in the
rich.pretty.traverse
function, which implements this correctly, as can be seen by calling patching the function to hard-code in a non-default limit, which is then properly applied.Platform
Click to expand
What platform (Win/Linux/Mac) are you running on? What terminal software are you using?
Problem is present on Linux and Mac,
rich==13.7.1
The text was updated successfully, but these errors were encountered: