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 use of
- New algorithm to pretty print which fits more on a line if possible
characterparameter in Rule and Console.rule, in favor of
- Optimized Syntax.from_path to avoid searching all lexers, which also speeds up tracebacks
- Added soft_wrap flag to Console.print