mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
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:
@@ -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__
|
||||
|
||||
@@ -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__
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user