mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
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:
committed by
Jelle Zijlstra
parent
55f15427bd
commit
87fca814b1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user