mirror of https://github.com/Textualize/rich.git
rearrage params, version bump
This commit is contained in:
parent
1d4ee64f79
commit
adc1d6dd1d
|
@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [9.2.0] - Unreleased
|
||||
## [9.2.0] - 2020-11-08
|
||||
|
||||
### Added
|
||||
|
||||
|
|
|
@ -413,9 +413,9 @@ def pretty_repr(
|
|||
*,
|
||||
max_width: int = 80,
|
||||
indent_size: int = 4,
|
||||
expand_all: bool = False,
|
||||
max_length: int = None,
|
||||
max_string: int = None,
|
||||
expand_all: bool = False,
|
||||
) -> str:
|
||||
"""Prettify repr string by expanding on to new lines to fit within a given width.
|
||||
|
||||
|
@ -423,11 +423,11 @@ def pretty_repr(
|
|||
_object (Any): Object to repr.
|
||||
max_width (int, optional): Desired maximum width of repr string. Defaults to 80.
|
||||
indent_size (int, optional): Number of spaces to indent. Defaults to 4.
|
||||
expand_all (bool, optional): Expand all containers regardless of available width. Defaults to False.
|
||||
max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
|
||||
Defaults to None.
|
||||
max_string (int, optional): Maximum length of string before truncating, or None to disable truncating.
|
||||
Defaults to None.
|
||||
expand_all (bool, optional): Expand all containers regardless of available width. Defaults to False.
|
||||
|
||||
Returns:
|
||||
str: A possibly multi-line representation of the object.
|
||||
|
|
Loading…
Reference in New Issue