From 693509bff687168624b0046eb022fa2b98f99ca6 Mon Sep 17 00:00:00 2001 From: Dominik Gabi Date: Wed, 13 Sep 2017 16:23:54 -0400 Subject: [PATCH] Change `Union[float, None]` to `Optional` in `socket.pyi` (#1602) --- stdlib/2and3/socket.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2and3/socket.pyi b/stdlib/2and3/socket.pyi index 37488fd11..34ed45206 100644 --- a/stdlib/2and3/socket.pyi +++ b/stdlib/2and3/socket.pyi @@ -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: ...