https://github.com/python/cpython/commit/db27aee2fe253855fc57b118658f4f4718819382
commit: db27aee2fe253855fc57b118658f4f4718819382
branch: main
author: Victor Stinner <vstin...@python.org>
committer: vstinner <vstin...@python.org>
date: 2025-03-12T14:04:12Z
summary:

gh-131152: Remove unused imports in `_pyrepl` and `ctypes` (#131150)

files:
M Lib/_pyrepl/simple_interact.py
M Lib/_pyrepl/windows_console.py
M Lib/ctypes/_layout.py

diff --git a/Lib/_pyrepl/simple_interact.py b/Lib/_pyrepl/simple_interact.py
index 6e46d7a30167516..a08546a93198240 100644
--- a/Lib/_pyrepl/simple_interact.py
+++ b/Lib/_pyrepl/simple_interact.py
@@ -33,11 +33,6 @@
 
 from .readline import _get_reader, multiline_input
 
-TYPE_CHECKING = False
-
-if TYPE_CHECKING:
-    from typing import Any
-
 
 _error: tuple[type[Exception], ...] | type[Exception]
 try:
diff --git a/Lib/_pyrepl/windows_console.py b/Lib/_pyrepl/windows_console.py
index 6d1a2f50dbf4623..47fd3fd8f8909b4 100644
--- a/Lib/_pyrepl/windows_console.py
+++ b/Lib/_pyrepl/windows_console.py
@@ -25,7 +25,6 @@
 import time
 import msvcrt
 
-from collections import deque
 import ctypes
 from ctypes.wintypes import (
     _COORD,
diff --git a/Lib/ctypes/_layout.py b/Lib/ctypes/_layout.py
index e30db598ab22e16..adda3f9a6f2acc4 100644
--- a/Lib/ctypes/_layout.py
+++ b/Lib/ctypes/_layout.py
@@ -5,8 +5,6 @@
 """
 
 import sys
-import warnings
-import struct
 
 from _ctypes import CField, buffer_info
 import ctypes

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to