diff --git a/rich/__main__.py b/rich/__main__.py index fbe42e2c..6313b195 100644 --- a/rich/__main__.py +++ b/rich/__main__.py @@ -2,20 +2,17 @@ import colorsys import io from time import process_time +from rich import box from rich.color import Color -from rich.columns import Columns from rich.console import Console, ConsoleOptions, RenderGroup, RenderResult from rich.markdown import Markdown from rich.measure import Measurement -from rich.padding import Padding -from rich.panel import Panel from rich.pretty import Pretty from rich.segment import Segment from rich.style import Style -from rich.table import Table from rich.syntax import Syntax +from rich.table import Table from rich.text import Text -from rich import box class ColorBox: diff --git a/rich/console.py b/rich/console.py index f843031f..d2915e7f 100644 --- a/rich/console.py +++ b/rich/console.py @@ -48,8 +48,8 @@ from .text import Text, TextType from .theme import Theme, ThemeStack if TYPE_CHECKING: - from .status import Status from ._windows import WindowsConsoleFeatures + from .status import Status WINDOWS = platform.system() == "Windows"