Skip to content

Commit 96ec6fb

Browse files
Removed unused imports.
1 parent b4d728e commit 96ec6fb

File tree

9 files changed

+9
-30
lines changed

9 files changed

+9
-30
lines changed

prompt_toolkit/contrib/regular_languages/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
import re
4242
from typing import Callable, Dict, Iterable, Iterator, List
4343
from typing import Match as RegexMatch
44-
from typing import Optional, Pattern, Tuple, cast
44+
from typing import Optional, Pattern, Tuple
4545

4646
from .regex_parser import (
4747
AnyNode,

prompt_toolkit/cursor_shapes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"CursorShapeConfig",
1414
"SimpleCursorShapeConfig",
1515
"ModalCursorShapeConfig",
16+
"DynamicCursorShapeConfig",
17+
"to_cursor_shape_config",
1618
]
1719

1820

prompt_toolkit/eventloop/async_context_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# mypy: allow-untyped-defs
77
import abc
88
from functools import wraps
9-
from typing import TYPE_CHECKING, AsyncContextManager, AsyncIterator, Callable, TypeVar
9+
from typing import AsyncContextManager, AsyncIterator, Callable, TypeVar
1010

1111
import _collections_abc
1212

prompt_toolkit/eventloop/inputhook.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,7 @@
2929
import threading
3030
from asyncio import AbstractEventLoop
3131
from selectors import BaseSelector, SelectorKey
32-
from typing import (
33-
TYPE_CHECKING,
34-
Any,
35-
Callable,
36-
List,
37-
Mapping,
38-
NamedTuple,
39-
Optional,
40-
Tuple,
41-
)
32+
from typing import TYPE_CHECKING, Any, Callable, List, Mapping, Optional, Tuple
4233

4334
from prompt_toolkit.utils import is_windows
4435

@@ -52,7 +43,7 @@
5243
]
5344

5445
if TYPE_CHECKING:
55-
from _typeshed import FileDescriptor, FileDescriptorLike
46+
from _typeshed import FileDescriptorLike
5647

5748
_EventMask = int
5849

prompt_toolkit/filters/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from abc import ABCMeta, abstractmethod
2-
from typing import Callable, Dict, Iterable, List, Tuple, Union, cast
2+
from typing import Callable, Dict, Iterable, List, Tuple, Union
33

44
__all__ = ["Filter", "Never", "Always", "Condition", "FilterOrBool"]
55

prompt_toolkit/key_binding/bindings/vi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import string
44
from enum import Enum
55
from itertools import accumulate
6-
from typing import Callable, Iterable, List, Optional, Tuple, TypeVar, Union, cast
6+
from typing import Callable, Iterable, List, Optional, Tuple, TypeVar, Union
77

88
from prompt_toolkit.application.current import get_app
99
from prompt_toolkit.buffer import Buffer, indent, reshape_text, unindent

prompt_toolkit/output/vt100.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,20 @@
66
everything has been highly optimized.)
77
http://pygments.org/
88
"""
9-
import array
109
import io
1110
import os
1211
import sys
1312
from typing import (
14-
IO,
1513
Callable,
1614
Dict,
1715
Hashable,
1816
Iterable,
19-
Iterator,
2017
List,
2118
Optional,
2219
Sequence,
2320
Set,
2421
TextIO,
2522
Tuple,
26-
cast,
2723
)
2824

2925
from prompt_toolkit.cursor_shapes import CursorShape

prompt_toolkit/output/win32.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
import os
2-
from ctypes import (
3-
ArgumentError,
4-
byref,
5-
c_char,
6-
c_long,
7-
c_short,
8-
c_uint,
9-
c_ulong,
10-
pointer,
11-
)
2+
from ctypes import ArgumentError, byref, c_char, c_long, c_uint, c_ulong, pointer
123

134
from ..utils import SPHINX_AUTODOC_RUNNING
145

prompt_toolkit/shortcuts/progress_bar/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
from prompt_toolkit.layout.dimension import AnyDimension, D
5252
from prompt_toolkit.output import ColorDepth, Output
5353
from prompt_toolkit.styles import BaseStyle
54-
from prompt_toolkit.utils import in_main_thread
5554

5655
from .formatters import Formatter, create_default_formatters
5756

0 commit comments

Comments
 (0)