Fix and unify type of socket.getaddrinfo

This commit is contained in:
David Euresti authored and Łukasz Langa committed 2017-02-22 20:24:47 -08:00
1 parent da11ecf773
commit 70e39d9ad2
2 files changed
+5 -3

No files matched your search

+2 -1
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: ...
+3 -2
View File
@@ -332,8 +332,9 @@ def create_connection(address: Tuple[str, int],
# the 5th tuple item is an address
def getaddrinfo(
host: str, port: int, family: int = ..., type: int = ..., proto: int = ...,
flags: int = ...) -> List[Tuple[int, int, int, str, tuple]]:
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]]]]:
...
def getfqdn(name: str = ...) -> str: ...