py313: Consolidate _pyrepl allowlist entries (#12031)

This commit is contained in:
Alex Waygood
2024-05-24 15:24:20 -04:00
committed by GitHub
parent 2985ef414c
commit 966fbfb300
3 changed files with 3 additions and 23 deletions

View File

@@ -1,10 +1,4 @@
# new in py313
_pyrepl.curses
_pyrepl.fancy_termios
_pyrepl.readline
_pyrepl.simple_interact
_pyrepl.unix_console
_pyrepl.unix_eventqueue
asyncio.unix_events.EventLoop
asyncio.unix_events._UnixSelectorEventLoop.create_unix_server
asyncio.unix_events.__all__

View File

@@ -1,11 +1,5 @@
# TODO: triage these (new in py313)
_decimal
_pyrepl.curses
_pyrepl.fancy_termios
_pyrepl.readline
_pyrepl.simple_interact
_pyrepl.unix_console
_pyrepl.unix_eventqueue
_stat.SF_SETTABLE
_stat.SF_SUPPORTED
_stat.SF_SYNTHETIC

View File

@@ -12,17 +12,6 @@ _ctypes.alignment
_ctypes.pointer
_ctypes.sizeof
_json.encode_basestring_ascii
_pyrepl.commands
_pyrepl.completing_reader
_pyrepl.console
_pyrepl.historical_reader
_pyrepl.input
_pyrepl.keymap
_pyrepl.pager
_pyrepl.reader
_pyrepl.trace
_pyrepl.types
_pyrepl.utils
_thread.interrupt_main
_thread.lock
_thread.stack_size
@@ -312,6 +301,9 @@ zoneinfo.ZoneInfo.from_file
# Allowlist entries that cannot or should not be fixed
# ==========
# The internal implementation of the REPL on py313+; not for public consumption
_pyrepl\..+
# Runtime AST node runtime constructor behaviour is too loose.
# For static typing, the loose behaviour is undesirable (https://github.com/python/typeshed/issues/8378).
# For the runtime, the loose behaviour is deprecated in Python 3.13 (https://github.com/python/cpython/issues/105858)