diff --git a/rich/pretty.py b/rich/pretty.py index c88f90c3..fa340212 100644 --- a/rich/pretty.py +++ b/rich/pretty.py @@ -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]: diff --git a/rich/progress.py b/rich/progress.py index 5353ca32..effcab40 100644 --- a/rich/progress.py +++ b/rich/progress.py @@ -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, )