remove references to "Text" in Python 3-only stubs (#4251)

This commit is contained in:
Jelle Zijlstra authored and GitHub committed 2020-06-22 12:39:01 +02:00
1 parent 66a9a4b5ce
commit e1d89e5742
6 files changed
+22 -22

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ from asyncio import events
from asyncio import protocols
from asyncio import streams
from asyncio import transports
from typing import Any, Optional, Text, Tuple, Union, IO
from typing import Any, Optional, Tuple, Union, IO
if sys.version_info >= (3, 8):
from os import PathLike
@@ -22,7 +22,7 @@ class SubprocessStreamProtocol(streams.FlowControlMixin,
stderr: Optional[streams.StreamReader]
def __init__(self, limit: int, loop: events.AbstractEventLoop) -> None: ...
def connection_made(self, transport: transports.BaseTransport) -> None: ...
def pipe_data_received(self, fd: int, data: Union[bytes, Text]) -> None: ...
def pipe_data_received(self, fd: int, data: Union[bytes, str]) -> None: ...
def pipe_connection_lost(self, fd: int, exc: Optional[Exception]) -> None: ...
def process_exited(self) -> None: ...