mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Fix and unify type of socket.getaddrinfo
This commit is contained in:
committed by
Łukasz Langa
parent
da11ecf773
commit
70e39d9ad2
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user