Change Union[float, None] to Optional in socket.pyi (#1602)

This commit is contained in:
Dominik Gabi
2017-09-13 16:23:54 -04:00
committed by Jelle Zijlstra
parent 1dfa570cae
commit 693509bff6

View File

@@ -555,7 +555,7 @@ class socket:
@overload
def sendto(self, data: bytes, flags: int, address: Union[tuple, str]) -> int: ...
def setblocking(self, flag: bool) -> None: ...
def settimeout(self, value: Union[float, None]) -> None: ...
def settimeout(self, value: Optional[float]) -> None: ...
def setsockopt(self, level: int, optname: int, value: Union[int, bytes]) -> None: ...
def shutdown(self, how: int) -> None: ...