Fixed parameter and return types of getnameinfo() everywhere (#4305)

This commit is contained in:
Alex Grönholm
2020-07-03 16:46:02 +03:00
committed by GitHub
parent c0e9c4f4c5
commit f9d469ac2b
3 changed files with 7 additions and 3 deletions

View File

@@ -782,7 +782,7 @@ def gethostbyname(hostname: str) -> str: ...
def gethostbyname_ex(hostname: str) -> Tuple[str, List[str], List[str]]: ...
def gethostname() -> str: ...
def gethostbyaddr(ip_address: str) -> Tuple[str, List[str], List[str]]: ...
def getnameinfo(sockaddr: Union[Tuple[str, int], Tuple[str, int, int, int]], flags: int) -> Tuple[str, int]: ...
def getnameinfo(sockaddr: Union[Tuple[str, int], Tuple[str, int, int, int]], flags: int) -> Tuple[str, str]: ...
def getprotobyname(protocolname: str) -> int: ...
def getservbyname(servicename: str, protocolname: str = ...) -> int: ...
def getservbyport(port: int, protocolname: str = ...) -> str: ...