diff --git a/stdlib/2and3/socket.pyi b/stdlib/2and3/socket.pyi index ec8534166..49b99906c 100644 --- a/stdlib/2and3/socket.pyi +++ b/stdlib/2and3/socket.pyi @@ -628,8 +628,10 @@ class socket: def getblocking(self) -> bool: ... def gettimeout(self) -> Optional[float]: ... - if sys.platform == 'win32': - def ioctl(self, control: object, option: Tuple[int, int, int]) -> None: ... + if sys.platform == 'win32' and sys.version_info >= (3, 6): + def ioctl(self, control: int, option: Union[int, Tuple[int, int, int], bool]) -> None: ... + elif sys.platform == 'win32': + def ioctl(self, control: int, option: Union[int, Tuple[int, int, int]]) -> None: ... if sys.version_info >= (3, 5): def listen(self, __backlog: int = ...) -> None: ...