mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Fix socket.socket.ioctl (#3669)
Fixes #3495 Co-authored-by: Niels Buwen <nielsbuwen@users.noreply.github.com>
This commit is contained in:
committed by
Jelle Zijlstra
parent
e7ddb21ae6
commit
eb6ce3cacb
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user