Skip to content

Commit

Permalink
Removed unused imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanslenders committed Feb 7, 2022
1 parent b4d728e commit 96ec6fb
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 30 deletions.
2 changes: 1 addition & 1 deletion prompt_toolkit/contrib/regular_languages/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import re
from typing import Callable, Dict, Iterable, Iterator, List
from typing import Match as RegexMatch
from typing import Optional, Pattern, Tuple, cast
from typing import Optional, Pattern, Tuple

from .regex_parser import (
AnyNode,
Expand Down
2 changes: 2 additions & 0 deletions prompt_toolkit/cursor_shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"CursorShapeConfig",
"SimpleCursorShapeConfig",
"ModalCursorShapeConfig",
"DynamicCursorShapeConfig",
"to_cursor_shape_config",
]


Expand Down
2 changes: 1 addition & 1 deletion prompt_toolkit/eventloop/async_context_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# mypy: allow-untyped-defs
import abc
from functools import wraps
from typing import TYPE_CHECKING, AsyncContextManager, AsyncIterator, Callable, TypeVar
from typing import AsyncContextManager, AsyncIterator, Callable, TypeVar

import _collections_abc

Expand Down
13 changes: 2 additions & 11 deletions prompt_toolkit/eventloop/inputhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,7 @@
import threading
from asyncio import AbstractEventLoop
from selectors import BaseSelector, SelectorKey
from typing import (
TYPE_CHECKING,
Any,
Callable,
List,
Mapping,
NamedTuple,
Optional,
Tuple,
)
from typing import TYPE_CHECKING, Any, Callable, List, Mapping, Optional, Tuple

from prompt_toolkit.utils import is_windows

Expand All @@ -52,7 +43,7 @@
]

if TYPE_CHECKING:
from _typeshed import FileDescriptor, FileDescriptorLike
from _typeshed import FileDescriptorLike

_EventMask = int

Expand Down
2 changes: 1 addition & 1 deletion prompt_toolkit/filters/base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from abc import ABCMeta, abstractmethod
from typing import Callable, Dict, Iterable, List, Tuple, Union, cast
from typing import Callable, Dict, Iterable, List, Tuple, Union

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

Expand Down
2 changes: 1 addition & 1 deletion prompt_toolkit/key_binding/bindings/vi.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import string
from enum import Enum
from itertools import accumulate
from typing import Callable, Iterable, List, Optional, Tuple, TypeVar, Union, cast
from typing import Callable, Iterable, List, Optional, Tuple, TypeVar, Union

from prompt_toolkit.application.current import get_app
from prompt_toolkit.buffer import Buffer, indent, reshape_text, unindent
Expand Down
4 changes: 0 additions & 4 deletions prompt_toolkit/output/vt100.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,20 @@
everything has been highly optimized.)
http://pygments.org/
"""
import array
import io
import os
import sys
from typing import (
IO,
Callable,
Dict,
Hashable,
Iterable,
Iterator,
List,
Optional,
Sequence,
Set,
TextIO,
Tuple,
cast,
)

from prompt_toolkit.cursor_shapes import CursorShape
Expand Down
11 changes: 1 addition & 10 deletions prompt_toolkit/output/win32.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
import os
from ctypes import (
ArgumentError,
byref,
c_char,
c_long,
c_short,
c_uint,
c_ulong,
pointer,
)
from ctypes import ArgumentError, byref, c_char, c_long, c_uint, c_ulong, pointer

from ..utils import SPHINX_AUTODOC_RUNNING

Expand Down
1 change: 0 additions & 1 deletion prompt_toolkit/shortcuts/progress_bar/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
from prompt_toolkit.layout.dimension import AnyDimension, D
from prompt_toolkit.output import ColorDepth, Output
from prompt_toolkit.styles import BaseStyle
from prompt_toolkit.utils import in_main_thread

from .formatters import Formatter, create_default_formatters

Expand Down

0 comments on commit 96ec6fb

Please sign in to comment.