mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 23:45:05 +02:00
Update types for rich 11
This commit is contained in:
parent
4ee919625d
commit
4bf0c972e6
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ from contextlib import asynccontextmanager, contextmanager
|
||||||
# TODO In Python 3.9 and above, ContextManager is deprecated
|
# TODO In Python 3.9 and above, ContextManager is deprecated
|
||||||
from typing import AsyncIterator, ContextManager, Iterator, List, Optional
|
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.live import Live
|
||||||
from rich.markup import escape
|
from rich.markup import escape
|
||||||
from rich.panel import Panel
|
from rich.panel import Panel
|
||||||
|
|
@ -68,7 +68,7 @@ class Log:
|
||||||
if self._download_progress.task_ids:
|
if self._download_progress.task_ids:
|
||||||
elements.append(self._download_progress)
|
elements.append(self._download_progress)
|
||||||
|
|
||||||
group = RenderGroup(*elements) # type: ignore
|
group = Group(*elements) # type: ignore
|
||||||
self._live.update(group)
|
self._live.update(group)
|
||||||
|
|
||||||
@contextmanager
|
@contextmanager
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue