From c231cb77868ab34a7ec90af2163c7db6db374ae0 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Thu, 17 Dec 2020 20:02:57 +0000 Subject: [PATCH] sort order --- rich/__main__.py | 7 ++----- rich/console.py | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) 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"