mirror of
https://github.com/python/cpython.git
synced 2025-09-24 17:33:29 +00:00
[3.13] gh-120417: Remove unused imports in the stdlib (GH-120420) (#120429)
gh-120417: Remove unused imports in the stdlib (GH-120420)
(cherry picked from commit 4c6d4f5cb3
)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
7c6b3429b6
commit
51724620e8
11 changed files with 5 additions and 14 deletions
|
@ -27,7 +27,7 @@ from .reader import Reader
|
|||
|
||||
|
||||
if False:
|
||||
from .types import Callback, SimpleContextManager, KeySpec, CommandName
|
||||
from .types import SimpleContextManager, KeySpec, CommandName
|
||||
|
||||
|
||||
isearch_keymap: tuple[tuple[KeySpec, CommandName], ...] = tuple(
|
||||
|
|
|
@ -8,7 +8,7 @@ import sys
|
|||
|
||||
# types
|
||||
if False:
|
||||
from typing import Protocol, Any
|
||||
from typing import Protocol
|
||||
class Pager(Protocol):
|
||||
def __call__(self, text: str, title: str = "") -> None:
|
||||
...
|
||||
|
|
|
@ -27,7 +27,6 @@ import re
|
|||
import select
|
||||
import signal
|
||||
import struct
|
||||
import sys
|
||||
import termios
|
||||
import time
|
||||
from fcntl import ioctl
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue