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

This commit is contained in:
Jelle Zijlstra
2020-06-22 03:39:01 -07:00
committed by GitHub
parent 66a9a4b5ce
commit e1d89e5742
6 changed files with 22 additions and 22 deletions

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: ...