mirror of https://github.com/Textualize/rich.git
Run pycln over the entire project and double check the accuracy.
This commit is contained in:
parent
d97f9bcdf6
commit
73a9a413ea
|
@ -4,7 +4,7 @@ A rudimentary URL downloader (like wget or curl) to demonstrate Rich progress ba
|
||||||
|
|
||||||
import os.path
|
import os.path
|
||||||
import sys
|
import sys
|
||||||
from concurrent.futures import as_completed, ThreadPoolExecutor
|
from concurrent.futures import ThreadPoolExecutor
|
||||||
import signal
|
import signal
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from threading import Event
|
from threading import Event
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
import os
|
import os
|
||||||
from typing import Callable, IO, TYPE_CHECKING, Any, Optional, Union
|
from typing import Callable, IO, TYPE_CHECKING, Any, Optional, Union
|
||||||
|
|
||||||
from ._extension import load_ipython_extension
|
|
||||||
|
|
||||||
__all__ = ["get_console", "reconfigure", "print", "inspect"]
|
__all__ = ["get_console", "reconfigure", "print", "inspect"]
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from typing import Any, Callable, Dict, Iterable, List, TYPE_CHECKING, Union
|
from typing import Callable, Dict, Iterable, List, TYPE_CHECKING, Union
|
||||||
|
|
||||||
from .segment import ControlCode, ControlType, Segment
|
from .segment import ControlCode, ControlType, Segment
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
from typing import Any, Callable
|
from typing import Any
|
||||||
|
|
||||||
|
|
||||||
class Pager(ABC):
|
class Pager(ABC):
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from typing import Any, Callable, cast, Set, TYPE_CHECKING
|
from typing import Any, cast, Set, TYPE_CHECKING
|
||||||
from inspect import isclass
|
from inspect import isclass
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|
|
@ -14,7 +14,7 @@ from pygments.token import Text as TextToken
|
||||||
from pygments.token import Token
|
from pygments.token import Token
|
||||||
|
|
||||||
from . import pretty
|
from . import pretty
|
||||||
from ._loop import loop_first, loop_last
|
from ._loop import loop_last
|
||||||
from .columns import Columns
|
from .columns import Columns
|
||||||
from .console import Console, ConsoleOptions, ConsoleRenderable, RenderResult, group
|
from .console import Console, ConsoleOptions, ConsoleRenderable, RenderResult, group
|
||||||
from .constrain import Constrain
|
from .constrain import Constrain
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import io
|
|
||||||
|
|
||||||
from rich.ansi import AnsiDecoder
|
from rich.ansi import AnsiDecoder
|
||||||
from rich.console import Console
|
from rich.console import Console
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# encoding=utf-8
|
# encoding=utf-8
|
||||||
import io
|
|
||||||
import time
|
import time
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from rich._lru_cache import LRUCache
|
from rich._lru_cache import LRUCache
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import io
|
import io
|
||||||
from rich.console import Console
|
from rich.console import Console
|
||||||
from rich.measure import Measurement
|
|
||||||
from rich.panel import Panel
|
from rich.panel import Panel
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -5,7 +5,6 @@ import io
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from rich import box, errors
|
from rich import box, errors
|
||||||
from rich.align import VerticalAlignMethod
|
|
||||||
from rich.console import Console
|
from rich.console import Console
|
||||||
from rich.measure import Measurement
|
from rich.measure import Measurement
|
||||||
from rich.style import Style
|
from rich.style import Style
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
from unicodedata import normalize
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import emoji
|
import emoji
|
||||||
|
|
Loading…
Reference in New Issue