Fix and unify type of socket.getaddrinfo

This commit is contained in:
David Euresti
2017-02-21 12:38:49 -08:00
committed by Łukasz Langa
parent da11ecf773
commit 70e39d9ad2
2 changed files with 5 additions and 3 deletions

View File

@@ -337,7 +337,8 @@ def create_connection(address: Tuple[str, int],
# the 5th tuple item is an address
def getaddrinfo(
host: Optional[str], port: Union[str, int, None], family: int = ...,
socktype: int = ..., proto: int = ..., flags: int = ...) -> List[Tuple[int, int, int, str, Union[Tuple[str, int], Tuple[str, int, int, int]]]]:
socktype: int = ..., proto: int = ...,
flags: int = ...) -> List[Tuple[int, int, int, str, Union[Tuple[str, int], Tuple[str, int, int, int]]]]:
...
def getfqdn(name: str = ...) -> str: ...