mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Improve socket py2 (#249)
* add vim swap files to gitignore
* add types to socket.socket.send{,all} for py2
This commit is contained in:
committed by
Guido van Rossum
parent
2b55989f7d
commit
09e165ec35
@@ -316,8 +316,8 @@ class socket:
|
||||
flags: int = ...) -> Any: ...
|
||||
def recv_into(self, buffer: str, nbytes: int,
|
||||
flags: int = ...) -> Any: ...
|
||||
def send(self, data: str, flags=...) -> int: ...
|
||||
def sendall(self, data: str, flags=...) -> Any:
|
||||
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: ...
|
||||
def setblocking(self, flag: bool) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user