addr should be Tuple[str, int], not str (#1740)

I think `addr` here should also be  `Tuple[str, int]`, the same change made to `sendto` in [this pr merged a few months ago](0e26c1f936 (diff-d21efb8da2d73c6c7c769270b387cd47)).
This commit is contained in:
Nathan Henrie
2017-11-13 07:14:16 +00:00
committed by Jelle Zijlstra
parent 55f15427bd
commit 87fca814b1

View File

@@ -1,5 +1,5 @@
from asyncio import transports
from typing import AnyStr, List
from typing import AnyStr, List, Tuple
__all__: List[str]
@@ -15,7 +15,7 @@ class Protocol(BaseProtocol):
def eof_received(self) -> bool: ...
class DatagramProtocol(BaseProtocol):
def datagram_received(self, data: AnyStr, addr: str) -> None: ...
def datagram_received(self, data: AnyStr, addr: Tuple[str, int]) -> None: ...
def error_received(self, exc: Exception) -> None: ...
class SubprocessProtocol(BaseProtocol):