pypi rich 4.0.0
A better Text.stylize

latest releases: 13.7.1, 13.7.0, 13.6.0...
3 years ago

[4.0.0] - 2020-07-23

Major version bump for a breaking change to Text.stylize signature, which corrects a minor but irritating API wart. The style now comes first and the start and end offsets default to the entire text. This allows for text.stylize_all(style) to be replaced with text.stylize(style). The start and end offsets now support negative indexing, so text.stylize("bold", -1) makes the last character bold.

Added

  • Added markup switch to RichHandler #171

Changed

  • Change signature of Text.stylize to accept style first
  • Remove Text.stylize_all which is no longer necessary

Fixed

  • Fixed rendering of Confirm prompt #170

Don't miss a new rich release

NewReleases is sending notifications on new releases.