Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stdlib/3/asyncio/base_events.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import selectors
from socket import socket
from socket import socket, _Address
import ssl
import sys
from typing import Any, Awaitable, Callable, Dict, Generator, List, Optional, Sequence, Tuple, TypeVar, Union, overload
Expand Down Expand Up @@ -123,7 +123,7 @@ class BaseEventLoop(AbstractEventLoop):
@coroutine
def sock_sendall(self, sock: socket, data: bytes) -> Generator[Any, None, None]: ...
@coroutine
def sock_connect(self, sock: socket, address: str) -> Generator[Any, None, None]: ...
def sock_connect(self, sock: socket, address: _Address) -> Generator[Any, None, None]: ...
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method is inherited from AbstractEventLoop and not even overridden in BaseEventLoop, so it can be removed here.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrm, my bad. While it seems that BaseEventLoop is indeed abstract, it is not marked as such. Probably easiest to re-add sock_connect().

@coroutine
def sock_accept(self, sock: socket) -> Generator[Any, None, Tuple[socket, Any]]: ...
# Signal handling.
Expand Down
4 changes: 2 additions & 2 deletions stdlib/3/asyncio/events.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import selectors
from socket import socket
from socket import socket, _Address
import ssl
import sys
from typing import Any, Awaitable, Callable, Dict, Generator, List, Optional, Sequence, Tuple, TypeVar, Union, overload
Expand Down Expand Up @@ -185,7 +185,7 @@ class AbstractEventLoop(metaclass=ABCMeta):
def sock_sendall(self, sock: socket, data: bytes) -> Generator[Any, None, None]: ...
@abstractmethod
@coroutine
def sock_connect(self, sock: socket, address: str) -> Generator[Any, None, None]: ...
def sock_connect(self, sock: socket, address: _Address) -> Generator[Any, None, None]: ...
@abstractmethod
@coroutine
def sock_accept(self, sock: socket) -> Generator[Any, None, Tuple[socket, Any]]: ...
Expand Down