diff --git a/stdlib/3/asyncio/protocols.pyi b/stdlib/3/asyncio/protocols.pyi index e80f238d2..0fa75a507 100644 --- a/stdlib/3/asyncio/protocols.pyi +++ b/stdlib/3/asyncio/protocols.pyi @@ -1,5 +1,5 @@ from asyncio import transports -from typing import Optional, Text, Tuple, Union +from typing import Optional, Tuple, Union class BaseProtocol: def connection_made(self, transport: transports.BaseTransport) -> None: ... @@ -16,10 +16,10 @@ class BufferedProtocol(Protocol): def buffer_updated(self, nbytes: int) -> None: ... class DatagramProtocol(BaseProtocol): - def datagram_received(self, data: Union[bytes, Text], addr: Tuple[str, int]) -> None: ... + def datagram_received(self, data: bytes, addr: Tuple[str, int]) -> None: ... def error_received(self, exc: Exception) -> None: ... class SubprocessProtocol(BaseProtocol): - def pipe_data_received(self, fd: int, data: Union[bytes, Text]) -> None: ... + def pipe_data_received(self, fd: int, data: bytes) -> None: ... def pipe_connection_lost(self, fd: int, exc: Optional[Exception]) -> None: ... def process_exited(self) -> None: ...