Skip to content

Commit 9b99543

Browse files
committed
Remove unused imports
1 parent a5306af commit 9b99543

File tree

18 files changed

+8
-29
lines changed

18 files changed

+8
-29
lines changed

bpython/args.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import os
3737
import sys
3838
from pathlib import Path
39-
from typing import Tuple, List, Optional
4039
from collections.abc import Callable
4140
from types import ModuleType
4241

bpython/autocomplete.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@
3939
from enum import Enum
4040
from typing import (
4141
Any,
42-
Dict,
43-
List,
4442
Optional,
45-
Set,
46-
Tuple,
4743
)
4844
from collections.abc import Iterator, Sequence
4945

bpython/curtsiesfrontend/_internal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
import pydoc
2424
from types import TracebackType
25-
from typing import Optional, Type, Literal
25+
from typing import Literal
2626

2727
from .. import _internal
2828

bpython/curtsiesfrontend/filewatch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import os
22
from collections import defaultdict
3-
from typing import Dict, Set, List
43
from collections.abc import Callable, Iterable, Sequence
54

65
from .. import importcompletion

bpython/curtsiesfrontend/interpreter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22
from codeop import CommandCompiler
3-
from typing import Any, Dict, Optional, Tuple, Union
3+
from typing import Any
44
from collections.abc import Iterable
55

66
from pygments.token import Generic, Token, Keyword, Name, Comment, String

bpython/curtsiesfrontend/parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import re
22
from functools import partial
3-
from typing import Any, Dict, Tuple
3+
from typing import Any
44
from collections.abc import Callable
55

66
from curtsies.formatstring import fmtstr, FmtStr

bpython/curtsiesfrontend/repl.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,7 @@
1414
from types import FrameType, TracebackType
1515
from typing import (
1616
Any,
17-
Dict,
18-
List,
1917
Literal,
20-
Optional,
21-
Tuple,
22-
Type,
23-
Union,
2418
)
2519
from collections.abc import Iterable, Sequence
2620

bpython/filelock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
# THE SOFTWARE.
2222

23-
from typing import Optional, Type, IO, Literal
23+
from typing import IO, Literal
2424
from types import TracebackType
2525

2626
has_fcntl = True

bpython/history.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from pathlib import Path
2626
import stat
2727
from itertools import islice, chain
28-
from typing import Optional, List, TextIO
28+
from typing import TextIO
2929
from collections.abc import Iterable
3030

3131
from .translations import _

bpython/importcompletion.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import warnings
2828
from dataclasses import dataclass
2929
from pathlib import Path
30-
from typing import Optional, Set, Union
3130
from collections.abc import Generator, Sequence, Iterable
3231

3332
from .line import (

0 commit comments

Comments
 (0)