Improve signatures of {get,set}sockopt(): use bytes, not str.

This commit is contained in:
Guido van Rossum
2016-08-17 20:25:34 -07:00
parent 61007ab1dc
commit 794e51612e

View File

@@ -322,7 +322,7 @@ class socket:
def sendto(self, data: str, address: Union[tuple, str], flags: int = ...) -> 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, str]) -> None: ...
def setsockopt(self, level: int, optname: int, value: Union[int, bytes]) -> None: ...
def shutdown(self, how: int) -> None: ...