asyncio: various fixes (#3947)

* asyncio: remove BaseChildWatcher from top level

* asyncio.sleep: loop is keyword-only

* asyncio: remove Server from top level

* asyncio: add FastChildWatcher to top level

* asyncio.constants: fix version availability

* asyncio: fix arg name for _wakeup

* asyncio: fix arg name for wrap_future

* asyncio.streams: add Optional to various arguments

It might be possible to further improve some of these with overloads.

* stubtest: fix whitelist

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-04-30 17:04:36 -07:00
committed by GitHub
parent 630b50e458
commit fec46043ed
8 changed files with 18 additions and 37 deletions

View File

@@ -3,9 +3,7 @@ asyncio.Future._exception
asyncio.Future._loop
asyncio.Future._tb_logger
asyncio.Task.__init__
asyncio.constants.DEBUG_STACK_DEPTH
asyncio.constants.SENDFILE_FALLBACK_READBUFFER_SIZE
asyncio.constants.SSL_HANDSHAKE_TIMEOUT
asyncio.Task._wakeup
asyncio.exceptions
asyncio.futures.Future._callbacks
asyncio.futures.Future._exception
@@ -15,6 +13,7 @@ asyncio.futures._TracebackLogger.__init__
asyncio.protocols.BufferedProtocol
asyncio.runners
asyncio.tasks.Task.__init__
asyncio.tasks.Task._wakeup
asyncio.unix_events._UnixSelectorEventLoop.create_unix_server
bdb.GENERATOR_AND_COROUTINE_FLAGS
builtins.str.maketrans

View File

@@ -1,13 +1,9 @@
asyncio.Future.__init__
asyncio.Task._wakeup
asyncio.constants.SENDFILE_FALLBACK_READBUFFER_SIZE
asyncio.constants.SSL_HANDSHAKE_TIMEOUT
asyncio.exceptions
asyncio.futures.Future.__init__
asyncio.futures._TracebackLogger.__init__
asyncio.protocols.BufferedProtocol
asyncio.runners
asyncio.tasks.Task._wakeup
asyncio.unix_events._UnixSelectorEventLoop.create_unix_server
builtins.str.maketrans
cmath.log

View File

@@ -14,39 +14,25 @@ abc.abstractstaticmethod
aifc.open
aifc.openfp
argparse.Namespace.__getattr__
asyncio.BaseChildWatcher
asyncio.BaseEventLoop.subprocess_exec
asyncio.Condition.acquire
asyncio.Condition.locked
asyncio.Condition.release
asyncio.Server
asyncio.StreamReaderProtocol.__init__
asyncio.Task.get_stack
asyncio.Task.print_stack
asyncio.WriteTransport.set_write_buffer_limits
asyncio.base_events.BaseEventLoop.subprocess_exec
asyncio.futures.wrap_future
asyncio.locks.Condition.acquire
asyncio.locks.Condition.locked
asyncio.locks.Condition.release
asyncio.open_connection
asyncio.open_unix_connection
asyncio.proactor_events.BaseProactorEventLoop.sock_recv
asyncio.selector_events.BaseSelectorEventLoop.sock_recv
asyncio.sleep
asyncio.start_unix_server
asyncio.streams.StreamReaderProtocol.__init__
asyncio.streams.open_connection
asyncio.streams.open_unix_connection
asyncio.streams.start_unix_server
asyncio.tasks.Task.get_stack
asyncio.tasks.Task.print_stack
asyncio.tasks.sleep
asyncio.transports.WriteTransport.set_write_buffer_limits
asyncio.transports._FlowControlMixin.set_write_buffer_limits
asyncio.windows_events
asyncio.windows_utils
asyncio.wrap_future
base64.b32decode
base64.b64decode
base64.b64encode