This commit is contained in:
Will McGugan 2024-07-01 20:47:13 +01:00
parent dcbe0ec6bb
commit fde5d6eee3
2 changed files with 10 additions and 2 deletions

View File

@ -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]:

View File

@ -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,
)