Add readline.backend for 3.13 (#12384)

This commit is contained in:
Max Muoto
2024-07-20 23:09:23 -05:00
committed by GitHub
parent 5eaa400f2b
commit 60303f6f06
3 changed files with 4 additions and 2 deletions

View File

@@ -8,7 +8,6 @@ fcntl.F_SETNOSIGPIPE
posixpath.splitroot
posix.waitid
posix.waitid_result
readline.backend
webbrowser.MacOSX
# TODO: fix

View File

@@ -3,6 +3,5 @@ _stat.SF_SUPPORTED
_stat.SF_SYNTHETIC
mmap.MAP_NORESERVE
posixpath.splitroot
readline.backend
stat.SF_SUPPORTED
stat.SF_SYNTHETIC

View File

@@ -1,6 +1,7 @@
import sys
from _typeshed import StrOrBytesPath
from collections.abc import Callable, Sequence
from typing import Literal
from typing_extensions import TypeAlias
if sys.platform != "win32":
@@ -34,3 +35,6 @@ if sys.platform != "win32":
def set_completer_delims(string: str, /) -> None: ...
def get_completer_delims() -> str: ...
def set_completion_display_matches_hook(function: _CompDisp | None = None, /) -> None: ...
if sys.version_info >= (3, 13):
backend: Literal["readline", "editline"]