mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-16 02:51:28 +08:00
use socket.sendto argument spec for DatagramTransport (#3943)
This commit is contained in:
1 parent
db2ee3cf3c
commit
aa06f3bc7b
1 file changed
+2
-1
@@ -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