mirror of https://github.com/Textualize/rich.git
format
This commit is contained in:
parent
dcbe0ec6bb
commit
fde5d6eee3
|
@ -361,7 +361,11 @@ def _get_braces_for_defaultdict(_object: DefaultDict[Any, Any]) -> Tuple[str, st
|
|||
def _get_braces_for_deque(_object: Deque[Any]) -> Tuple[str, str, str]:
|
||||
if _object.maxlen is None:
|
||||
return ("deque([", "])", "deque()")
|
||||
return ("deque([", f"], maxlen={_object.maxlen})", f"deque(maxlen={_object.maxlen})")
|
||||
return (
|
||||
"deque([",
|
||||
f"], maxlen={_object.maxlen})",
|
||||
f"deque(maxlen={_object.maxlen})",
|
||||
)
|
||||
|
||||
|
||||
def _get_braces_for_array(_object: "array[Any]") -> Tuple[str, str, str]:
|
||||
|
|
|
@ -168,7 +168,11 @@ def track(
|
|||
|
||||
with progress:
|
||||
yield from progress.track(
|
||||
sequence, total=total, completed=completed, description=description, update_period=update_period
|
||||
sequence,
|
||||
total=total,
|
||||
completed=completed,
|
||||
description=description,
|
||||
update_period=update_period,
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue