asyncio.events: various fixes (#3931)

- connect_accepted_socket isn't a member of AbstractEventLoop, only
BaseEventLoop
- fix types of arguments with defaults. some of these functions could
have their signatures improved with overloads to reduce false negatives
- correctly mark a positional-only argument
- remove abstractmethod from methods that don't have abstractmethod and
go unimplemented in practice
This commit is contained in:
Shantanu
2020-04-20 17:56:24 -07:00
committed by GitHub
parent 626a0f3f73
commit ec57251010
8 changed files with 8 additions and 93 deletions

View File

@@ -15,6 +15,7 @@ asyncio.futures._TracebackLogger.__init__
asyncio.protocols.BufferedProtocol
asyncio.runners
asyncio.tasks.Task.__init__
asyncio.unix_events._UnixSelectorEventLoop.create_unix_server
bdb.GENERATOR_AND_COROUTINE_FLAGS
builtins.str.maketrans
cmath.log

View File

@@ -8,6 +8,7 @@ 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
codecs.StreamRecoder.seek

View File

@@ -2,14 +2,12 @@ _bisect.bisect
_bisect.insort
_tracemalloc._get_object_traceback
_tracemalloc.start
asyncio.AbstractEventLoop.create_unix_server
asyncio.AbstractEventLoop.sock_sendfile
asyncio.Future.__init__
asyncio.Future._callbacks
asyncio.Future._schedule_callbacks
asyncio.Handle.__init__
asyncio.TimerHandle.__init__
asyncio.events.AbstractEventLoop.create_unix_server
asyncio.events.AbstractEventLoop.sock_sendfile
asyncio.events.Handle.__init__
asyncio.events.TimerHandle.__init__
@@ -17,8 +15,6 @@ asyncio.exceptions
asyncio.futures.Future.__init__
asyncio.futures.Future._callbacks
asyncio.futures.Future._schedule_callbacks
asyncio.proactor_events.BaseProactorEventLoop.create_unix_server
asyncio.selector_events.BaseSelectorEventLoop.create_unix_server
builtins.dict.get
builtins.reversed
builtins.str.maketrans

View File

@@ -5,7 +5,6 @@ _thread._ExceptHookArgs
_tracemalloc._get_object_traceback
_tracemalloc.start
_weakref.getweakrefcount
asyncio.AbstractEventLoop.create_unix_server
asyncio.AbstractEventLoop.sock_sendfile
asyncio.Future.__init__
asyncio.Future._callbacks
@@ -19,21 +18,16 @@ asyncio.Task.set_exception
asyncio.Task.set_name
asyncio.Task.set_result
asyncio.TimerHandle.__init__
asyncio._set_running_loop
asyncio.events.AbstractEventLoop.create_unix_server
asyncio.events.AbstractEventLoop.sock_sendfile
asyncio.events.Handle.__init__
asyncio.events.TimerHandle.__init__
asyncio.events._set_running_loop
asyncio.futures.Future.__init__
asyncio.futures.Future._callbacks
asyncio.futures.Future._schedule_callbacks
asyncio.futures.Future.remove_done_callback
asyncio.futures.Future.set_exception
asyncio.futures.Future.set_result
asyncio.proactor_events.BaseProactorEventLoop.create_unix_server
asyncio.proactor_events._ProactorBasePipeTransport.__del__
asyncio.selector_events.BaseSelectorEventLoop.create_unix_server
asyncio.tasks.Task.remove_done_callback
asyncio.tasks.Task.set_exception
asyncio.tasks.Task.set_name

View File

@@ -15,8 +15,6 @@ abc.abstractstaticmethod
aifc.open
aifc.openfp
argparse.Namespace.__getattr__
asyncio.AbstractEventLoop.connect_accepted_socket
asyncio.AbstractEventLoop.create_unix_connection
asyncio.BaseChildWatcher
asyncio.BaseEventLoop.subprocess_exec
asyncio.Condition.acquire
@@ -32,8 +30,6 @@ asyncio.Task.get_stack
asyncio.Task.print_stack
asyncio.WriteTransport.set_write_buffer_limits
asyncio.base_events.BaseEventLoop.subprocess_exec
asyncio.events.AbstractEventLoop.connect_accepted_socket
asyncio.events.AbstractEventLoop.create_unix_connection
asyncio.futures.Future._copy_state
asyncio.futures.wrap_future
asyncio.locks.Condition.acquire
@@ -41,11 +37,9 @@ asyncio.locks.Condition.locked
asyncio.locks.Condition.release
asyncio.open_connection
asyncio.open_unix_connection
asyncio.proactor_events.BaseProactorEventLoop.create_unix_connection
asyncio.proactor_events.BaseProactorEventLoop.sock_recv
asyncio.queues.Queue._consume_done_getters
asyncio.queues.Queue._consume_done_putters
asyncio.selector_events.BaseSelectorEventLoop.create_unix_connection
asyncio.selector_events.BaseSelectorEventLoop.sock_recv
asyncio.sleep
asyncio.start_unix_server
@@ -59,8 +53,6 @@ asyncio.tasks.Task.print_stack
asyncio.tasks.sleep
asyncio.transports.WriteTransport.set_write_buffer_limits
asyncio.transports._FlowControlMixin.set_write_buffer_limits
asyncio.unix_events._UnixSelectorEventLoop.create_unix_connection
asyncio.unix_events._UnixSelectorEventLoop.create_unix_server
asyncio.windows_events
asyncio.windows_utils
asyncio.wrap_future