Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove more unused imports
  • Loading branch information
vstinner committed Jun 12, 2024
commit 7d61ff717bc74edf31a9f2a93de7019874c71ae0
2 changes: 1 addition & 1 deletion Lib/_pyrepl/historical_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


if False:
from .types import Callback, SimpleContextManager, KeySpec, CommandName
from .types import SimpleContextManager, KeySpec, CommandName


isearch_keymap: tuple[tuple[KeySpec, CommandName], ...] = tuple(
Expand Down
2 changes: 1 addition & 1 deletion Lib/_pyrepl/pager.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# types
if False:
from typing import Protocol, Any
from typing import Protocol
class Pager(Protocol):
def __call__(self, text: str, title: str = "") -> None:
...
Expand Down
1 change: 0 additions & 1 deletion Lib/_pyrepl/unix_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import select
import signal
import struct
import sys
import termios
import time
from fcntl import ioctl
Expand Down
3 changes: 0 additions & 3 deletions Lib/_pyrepl/windows_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,12 @@
from __future__ import annotations

import io
from multiprocessing import Value
import os
import sys
import time
import msvcrt

from abc import ABC, abstractmethod
from collections import deque
from dataclasses import dataclass, field
import ctypes
from ctypes.wintypes import (
_COORD,
Expand Down
1 change: 0 additions & 1 deletion Lib/dbm/sqlite3.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import sqlite3
import sys
from pathlib import Path
from contextlib import suppress, closing
from collections.abc import MutableMapping
Expand Down
2 changes: 1 addition & 1 deletion Lib/idlelib/grep.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def grep_it(self, prog, path):


def _grep_dialog(parent): # htest #
from tkinter import Toplevel, Text, SEL, END
from tkinter import Toplevel, Text, SEL
from tkinter.ttk import Frame, Button
from idlelib.pyshell import PyShellFileList

Expand Down
1 change: 0 additions & 1 deletion Lib/importlib/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
_frozen_importlib_external = _bootstrap_external
from ._abc import Loader
import abc
import warnings


__all__ = [
Expand Down