Skip to content

Commit 07412a3

Browse files
Removed unused imports.
1 parent 960df47 commit 07412a3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+73
-229
lines changed

src/prompt_toolkit/application/application.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,12 @@
2323
Any,
2424
Callable,
2525
Coroutine,
26-
Dict,
27-
FrozenSet,
2826
Generator,
2927
Generic,
3028
Hashable,
3129
Iterable,
3230
Iterator,
33-
List,
34-
Optional,
35-
Set,
36-
Tuple,
37-
Type,
3831
TypeVar,
39-
Union,
4032
cast,
4133
overload,
4234
)

src/prompt_toolkit/application/current.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44
from contextlib import contextmanager
55
from contextvars import ContextVar
6-
from typing import TYPE_CHECKING, Any, Generator, Optional
6+
from typing import TYPE_CHECKING, Any, Generator
77

88
if TYPE_CHECKING:
99
from prompt_toolkit.input.base import Input

src/prompt_toolkit/application/dummy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import Callable, Optional
3+
from typing import Callable
44

55
from prompt_toolkit.formatted_text import AnyFormattedText
66
from prompt_toolkit.input import DummyInput

src/prompt_toolkit/application/run_in_terminal.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"""
44
from __future__ import annotations
55

6-
import sys
76
from asyncio import Future, ensure_future
87
from contextlib import asynccontextmanager
98
from typing import AsyncGenerator, Awaitable, Callable, TypeVar

src/prompt_toolkit/auto_suggest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from __future__ import annotations
1515

1616
from abc import ABCMeta, abstractmethod
17-
from typing import TYPE_CHECKING, Callable, Optional, Union
17+
from typing import TYPE_CHECKING, Callable
1818

1919
from prompt_toolkit.eventloop import run_in_executor_with_context
2020

src/prompt_toolkit/buffer.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,7 @@
1515
from collections import deque
1616
from enum import Enum
1717
from functools import wraps
18-
from typing import (
19-
Any,
20-
Awaitable,
21-
Callable,
22-
Coroutine,
23-
Deque,
24-
Iterable,
25-
List,
26-
Optional,
27-
Set,
28-
Tuple,
29-
TypeVar,
30-
Union,
31-
cast,
32-
)
18+
from typing import Any, Awaitable, Callable, Coroutine, Deque, Iterable, TypeVar, cast
3319

3420
from .application.current import get_app
3521
from .application.run_in_terminal import run_in_terminal

src/prompt_toolkit/clipboard/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from __future__ import annotations
55

66
from abc import ABCMeta, abstractmethod
7-
from typing import Callable, Optional
7+
from typing import Callable
88

99
from prompt_toolkit.selection import SelectionType
1010

src/prompt_toolkit/clipboard/in_memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
from collections import deque
4-
from typing import Deque, Optional
4+
from typing import Deque
55

66
from .base import Clipboard, ClipboardData
77

src/prompt_toolkit/clipboard/pyperclip.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from __future__ import annotations
22

3-
from typing import Optional
4-
53
import pyperclip
64

75
from prompt_toolkit.selection import SelectionType

src/prompt_toolkit/completion/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
from abc import ABCMeta, abstractmethod
6-
from typing import AsyncGenerator, Callable, Iterable, Optional, Sequence
6+
from typing import AsyncGenerator, Callable, Iterable, Sequence
77

88
from prompt_toolkit.document import Document
99
from prompt_toolkit.eventloop import aclosing, generator_to_async_generator

0 commit comments

Comments
 (0)