mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Change Union[float, None] to Optional in socket.pyi (#1602)
This commit is contained in:
committed by
Jelle Zijlstra
parent
1dfa570cae
commit
693509bff6
@@ -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: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user