mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
fix socket.sendto (#909)
This commit is contained in:
committed by
Guido van Rossum
parent
b8df3de81a
commit
293dcfa661
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user