fix socket.sendto (#909)

This commit is contained in:
Matthias Kramm
2017-01-31 14:32:15 -08:00
committed by Guido van Rossum
parent b8df3de81a
commit 293dcfa661

View File

@@ -319,7 +319,10 @@ class socket:
def send(self, data: str, flags: int = ...) -> int: ...
def sendall(self, data: str, flags: int = ...) -> None:
... # return type: None on success
def sendto(self, data: str, address: Union[tuple, str], flags: int = ...) -> int: ...
@overload
def sendto(self, data: str, address: Union[tuple, str]) -> int: ...
@overload
def sendto(self, data: str, flags: int, address: Union[tuple, str]) -> int: ...
def setblocking(self, flag: bool) -> None: ...
def settimeout(self, value: Union[float, None]) -> None: ...
def setsockopt(self, level: int, optname: int, value: Union[int, bytes]) -> None: ...