From 4bf0c972e6e37afc7f9688104082189f5f78d390 Mon Sep 17 00:00:00 2001 From: I-Al-Istannen Date: Sun, 9 Jan 2022 11:47:59 +0100 Subject: [PATCH] Update types for rich 11 --- PFERD/logging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PFERD/logging.py b/PFERD/logging.py index 32e5268..e2d64fc 100644 --- a/PFERD/logging.py +++ b/PFERD/logging.py @@ -5,7 +5,7 @@ from contextlib import asynccontextmanager, contextmanager # TODO In Python 3.9 and above, ContextManager is deprecated from typing import AsyncIterator, ContextManager, Iterator, List, Optional -from rich.console import Console, RenderGroup +from rich.console import Console, Group from rich.live import Live from rich.markup import escape from rich.panel import Panel @@ -68,7 +68,7 @@ class Log: if self._download_progress.task_ids: elements.append(self._download_progress) - group = RenderGroup(*elements) # type: ignore + group = Group(*elements) # type: ignore self._live.update(group) @contextmanager