asyncio: remove overly specific protocols (#10984)

The _warn parameter to these methods is just there to work around
some finalization issues and should never be used by users. In
addition, these protocols are out of date (the "stacklevel" argument
is not used by current CPython main). I don't think we gain anything
by trying to maintain these protocol definitions.
This commit is contained in:
Jelle Zijlstra
2023-11-07 19:26:25 -08:00
committed by GitHub
parent 4020d25686
commit b36f3c5229
7 changed files with 23 additions and 29 deletions

View File

@@ -65,3 +65,8 @@ curses.COLORS # Initialized after start_color
curses.COLOR_PAIRS # Initialized after start_color
curses.COLS # Initialized only after initscr call
curses.LINES # Initialized only after initscr call
# Takes a "_warn" parameter at runtime
# for technical reasons; no need to expose it in the stub.
asyncio.ThreadedChildWatcher.__del__
asyncio.unix_events.ThreadedChildWatcher.__del__

View File

@@ -57,3 +57,8 @@ curses.COLORS # Initialized after start_color
curses.COLOR_PAIRS # Initialized after start_color
curses.COLS # Initialized only after initscr call
curses.LINES # Initialized only after initscr call
# Takes a "_warn" parameter at runtime
# for technical reasons; no need to expose it in the stub.
asyncio.ThreadedChildWatcher.__del__
asyncio.unix_events.ThreadedChildWatcher.__del__

View File

@@ -374,6 +374,10 @@ threading.Condition.release
multiprocessing.dummy.Condition.acquire
multiprocessing.dummy.Condition.release
# Takes a "_warn" parameter at runtime
# for technical reasons; no need to expose it in the stub.
asyncio.proactor_events._ProactorBasePipeTransport.__del__
# Weird special builtins that are typed as functions, but aren't functions
builtins.copyright
builtins.credits

View File

@@ -60,3 +60,7 @@ pathlib.Path.group
# but have yet to find their way to all GitHub Actions images
(sys.get_int_max_str_digits)?
(sys.set_int_max_str_digits)?
# Takes a "_warn" parameter at runtime
# for technical reasons; no need to expose it in the stub.
asyncio.windows_utils.PipeHandle.__del__