mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
asyncio.Server.socket fixes (#5538)
* Move socket from AbstractServer to Server. * Fix Server.socket type on Python 3.7+. * Use Iterable instead of list for socket argument. Closes: #5535
This commit is contained in:
@@ -53,7 +53,6 @@ class TimerHandle(Handle):
|
||||
def when(self) -> float: ...
|
||||
|
||||
class AbstractServer:
|
||||
sockets: Optional[List[socket]]
|
||||
def close(self) -> None: ...
|
||||
if sys.version_info >= (3, 7):
|
||||
async def __aenter__(self: _T) -> _T: ...
|
||||
|
||||
Reference in New Issue
Block a user