Change8

v14.1.0

Breaking Changes
📦 rich
1 breaking3 features🐛 3 fixes🔧 4 symbols

Summary

Rich 14.1.0 adds nested live objects, a new `padding` property for `Syntax`, and the `TTY_INTERACTIVE` env var, while removing the `typing_extensions` runtime dependency and fixing several bugs.

⚠️ Breaking Changes

  • Removed `typing_extensions` from runtime dependencies. Code that relied on Rich exposing `typing_extensions` will now fail; add `typing_extensions` as an explicit dependency or vendor the needed types.

Migration Steps

  1. If your project relied on Rich providing `typing_extensions`, add `typing_extensions` to your project's dependencies.
  2. No code changes required for the new nesting capability or the new `padding` property, but you may want to update any custom handling of live objects.

✨ New Features

  • Live objects, including `Progress`, can now be nested within other live contexts.
  • `Syntax` now has a `padding` property that returns a tuple of four integers.
  • `TTY_INTERACTIVE` environment variable added to force interactive mode on or off.

🐛 Bug Fixes

  • Fixed extraction of recursive exceptions.
  • Fixed padding applied to `Syntax`.
  • Fixed `Panel` title missing the panel background style.

🔧 Affected Symbols

ProgressSyntaxPaneltyping_extensions