mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
attempt to get rid of TODOS, should i edit tests too?
This commit is contained in:
@@ -321,8 +321,7 @@ class socket:
|
||||
... # return type: None on success
|
||||
def sendto(self, data: str, address: Union[tuple, str], flags: int = ...) -> int: ...
|
||||
def setblocking(self, flag: bool) -> None: ...
|
||||
# TODO None valid for the value argument
|
||||
def settimeout(self, value: float) -> None: ...
|
||||
def settimeout(self, value: Union[float, None]) -> None: ...
|
||||
def setsockopt(self, level: int, optname: str, value: Union[int, str]) -> None: ...
|
||||
def shutdown(self, how: int) -> None: ...
|
||||
|
||||
@@ -359,6 +358,5 @@ def inet_aton(ip_string: str) -> str: ... # ret val 4 bytes in length
|
||||
def inet_ntoa(packed_ip: str) -> str: ...
|
||||
def inet_pton(address_family: int, ip_string: str) -> str: ...
|
||||
def inet_ntop(address_family: int, packed_ip: str) -> str: ...
|
||||
# TODO the timeout may be None
|
||||
def getdefaulttimeout() -> float: ...
|
||||
def getdefaulttimeout() -> Union[float, None]: ...
|
||||
def setdefaulttimeout(timeout: float) -> None: ...
|
||||
|
||||
@@ -320,8 +320,7 @@ class socket:
|
||||
... # return type: None on success
|
||||
def sendto(self, data: bytes, address: Union[tuple, str], flags: int = ...) -> int: ...
|
||||
def setblocking(self, flag: bool) -> None: ...
|
||||
# TODO None valid for the value argument
|
||||
def settimeout(self, value: float) -> None: ...
|
||||
def settimeout(self, value: Union[float, None]) -> None: ...
|
||||
def setsockopt(self, level: int, optname: str, value: Union[int, bytes]) -> None: ...
|
||||
def shutdown(self, how: int) -> None: ...
|
||||
|
||||
@@ -358,6 +357,5 @@ def inet_aton(ip_string: str) -> bytes: ... # ret val 4 bytes in length
|
||||
def inet_ntoa(packed_ip: bytes) -> str: ...
|
||||
def inet_pton(address_family: int, ip_string: str) -> bytes: ...
|
||||
def inet_ntop(address_family: int, packed_ip: bytes) -> str: ...
|
||||
# TODO the timeout may be None
|
||||
def getdefaulttimeout() -> float: ...
|
||||
def getdefaulttimeout() -> Union[float, None]: ...
|
||||
def setdefaulttimeout(timeout: float) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user