mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Fixed parameter and return types of getnameinfo() everywhere (#4305)
This commit is contained in:
@@ -87,7 +87,9 @@ class BaseEventLoop(AbstractEventLoop, metaclass=ABCMeta):
|
||||
proto: int = ...,
|
||||
flags: int = ...,
|
||||
) -> List[Tuple[int, int, int, str, Tuple[Any, ...]]]: ...
|
||||
async def getnameinfo(self, sockaddr: Tuple[Any, ...], flags: int = ...) -> Tuple[str, int]: ...
|
||||
async def getnameinfo(
|
||||
self, sockaddr: Union[Tuple[str, int], Tuple[str, int, int, int]], flags: int = ...
|
||||
) -> Tuple[str, str]: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
@overload
|
||||
async def create_connection(
|
||||
|
||||
@@ -134,7 +134,9 @@ class AbstractEventLoop(metaclass=ABCMeta):
|
||||
flags: int = ...,
|
||||
) -> List[Tuple[int, int, int, str, Tuple[Any, ...]]]: ...
|
||||
@abstractmethod
|
||||
async def getnameinfo(self, sockaddr: Tuple[Any, ...], flags: int = ...) -> Tuple[str, int]: ...
|
||||
async def getnameinfo(
|
||||
self, sockaddr: Union[Tuple[str, int], Tuple[str, int, int, int]], flags: int = ...
|
||||
) -> Tuple[str, str]: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
@overload
|
||||
@abstractmethod
|
||||
|
||||
Reference in New Issue
Block a user