Headline of this release is a better pretty print. The previous version could expand lines prematurely. This version fits containers and is faster to boot. It also support defaultdict, Counter, and array.
Breaking change is because the signature of Pretty and pretty_repr has changed, and the character
argument to rule was dropped. This is unlikely to impact many people.
[6.0.0] - 2020-08-25
Fixed
- Fixed use of
__rich__
cast
Changed
- New algorithm to pretty print which fits more on a line if possible
- Deprecated
character
parameter in Rule and Console.rule, in favor ofcharacters
- Optimized Syntax.from_path to avoid searching all lexers, which also speeds up tracebacks
Added
- Added soft_wrap flag to Console.print