mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
use socket.sendto argument spec for DatagramTransport (#3943)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import sys
|
||||
from socket import _Address
|
||||
from typing import Any, Mapping, List, Optional, Tuple
|
||||
from asyncio.protocols import BaseProtocol
|
||||
from asyncio.events import AbstractEventLoop
|
||||
@@ -32,7 +33,7 @@ class WriteTransport(BaseTransport):
|
||||
class Transport(ReadTransport, WriteTransport): ...
|
||||
|
||||
class DatagramTransport(BaseTransport):
|
||||
def sendto(self, data: Any, addr: Optional[Tuple[str, int]] = ...) -> None: ...
|
||||
def sendto(self, data: Any, addr: Optional[_Address] = ...) -> None: ...
|
||||
def abort(self) -> None: ...
|
||||
|
||||
class SubprocessTransport(BaseTransport):
|
||||
|
||||
Reference in New Issue
Block a user