Skip to content

Commit 7f9f3e9

Browse files
Removed unused imports.
1 parent 73c17db commit 7f9f3e9

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

prompt_toolkit/buffer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import shutil
1010
import subprocess
1111
import tempfile
12-
from asyncio import Task, ensure_future
12+
from asyncio import Task
1313
from enum import Enum
1414
from functools import wraps
1515
from typing import (
@@ -43,7 +43,7 @@
4343
from .history import History, InMemoryHistory
4444
from .search import SearchDirection, SearchState
4545
from .selection import PasteMode, SelectionState, SelectionType
46-
from .utils import Event, call_if_callable, to_str
46+
from .utils import Event, call_if_callable
4747
from .validation import ValidationError, Validator
4848

4949
__all__ = [

prompt_toolkit/shortcuts/progress_bar/base.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,14 @@
1212
import functools
1313
import os
1414
import signal
15-
import sys
1615
import threading
1716
import traceback
1817
from asyncio import (
19-
CancelledError,
2018
get_event_loop,
2119
new_event_loop,
2220
set_event_loop,
23-
sleep,
2421
)
2522
from typing import (
26-
Generator,
2723
Generic,
2824
Iterable,
2925
List,
@@ -56,7 +52,7 @@
5652
)
5753
from prompt_toolkit.layout.controls import UIContent, UIControl
5854
from prompt_toolkit.layout.dimension import AnyDimension, D
59-
from prompt_toolkit.output import ColorDepth, Output, create_output
55+
from prompt_toolkit.output import ColorDepth, Output
6056
from prompt_toolkit.styles import BaseStyle
6157
from prompt_toolkit.utils import in_main_thread
6258

prompt_toolkit/shortcuts/prompt.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@
2525
s = PromptSession()
2626
result = s.prompt('Say something: ')
2727
"""
28-
from asyncio import get_event_loop, sleep
28+
from asyncio import get_event_loop
2929
from enum import Enum
3030
from functools import partial
3131
from typing import (
3232
TYPE_CHECKING,
33-
Any,
3433
Callable,
35-
Generator,
3634
Generic,
3735
List,
3836
Optional,

0 commit comments

Comments
 (0)