if False:
- from .types import Callback, SimpleContextManager, KeySpec, CommandName
+ from .types import SimpleContextManager, KeySpec, CommandName
isearch_keymap: tuple[tuple[KeySpec, CommandName], ...] = tuple(
# types
if False:
- from typing import Protocol, Any
+ from typing import Protocol
class Pager(Protocol):
def __call__(self, text: str, title: str = "") -> None:
...
import select
import signal
import struct
-import sys
import termios
import time
from fcntl import ioctl
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,
import itertools
import abc
from reprlib import recursive_repr
-from types import FunctionType, GenericAlias
__all__ = ['dataclass',
# it.
func(self.default, owner, name)
- __class_getitem__ = classmethod(GenericAlias)
+ __class_getitem__ = classmethod(types.GenericAlias)
class _DataclassParams:
import os
import sqlite3
-import sys
from pathlib import Path
from contextlib import suppress, closing
from collections.abc import MutableMapping
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
_frozen_importlib_external = _bootstrap_external
from ._abc import Loader
import abc
-import warnings
from .resources import abc as _resources_abc
import os
import sys
-import stat
import genericpath
from genericpath import *
from reprlib import Repr
from traceback import format_exception_only
-from _pyrepl.pager import (get_pager, plain, escape_less, pipe_pager,
+from _pyrepl.pager import (get_pager, plain, pipe_pager,
plain_pager, tempfile_pager, tty_pager)
Suggested usage: from stat import *
"""
-import sys
# Indices for stat struct members in the tuple returned by os.stat()